» Home » entry » Page 1
Programmatic Entry on databound datagridview's uncommitted row isn't causing new row to appear. When selected, entry disappears
by Philippines in Programming Languages

I have a training project at my new job and a really small but crucial setback.

I have a datagridview control bound to a dataset read from an xml file. It has 3 columns: item, price, calories. I am supposed to calculate the average values for price and calories and place them in the row below the entries that are read in from the xml. This works fine, except that when I fill the bo

How can I update a child collection entry instead of adding a new entry with Entity Framework?
by Nick Pegg in Web Design

When calling the Add method in the Appointments controller a new entry is created in the student table even when there is a matching student.

What I want is to update the matching student entry based on the foreign key which has already been established. Of course if there is no match then it should insert.

public class Appointment
public int Id { get

Select the correct entry in a drop down list on the basis of database entry?
by nedfunnell in Programming Languages

I have a simple Crud application where there is one filed called Category. During Creation , for Category I have provided a simple drop down box which lists all categories. During Editing, I need to get the same drop down box with the entry in the database chosen.How do i do this.

For creation i used say


Recording changed values with DBContext Entry.OriginalValues and Entry.NewValues
by Bernhard in Programming Languages

I have a document library site and would like to send an email when a document object is edited, containing a summary of the changes.

The database interaction is Code First Entities Framework using DBContext

Here is what I have so far:

public ActionResult Edit(Document document, bool sendEmail, string commentsTextBox)

script to read a Registry entry valur recursively and for each entry write a new one
by IlLogiK in Programming Languages

That is a hard one I searched everywhere and could find a resobale answer. What I want is:

1) Read the value "ServiceName" value for each entry in "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkCards"

2) Create a new Registry for each "ServiceName" from each "Entry" on "HKEY_LOCAL_MACHINESYSTEMControlSet001ControlClass{4D36E972-E325-11CE-BFC1-08002BE1

post entry to IBM Connections board return existing entries with no expected headers or new entry
by jfraser in Programming Languages

Trying to Post Messages to IBM Connections using http POST method using c#.

ATOM formatted Message Entry Message XML:

<entry xmlns="http://www.w3.org/2005/Atom">
<category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="entry"/>
<category scheme="http://www.ibm.com/xmlns/prod/sn/message-type" term="simpleEntry"/>

Is inserting a new database entry faster than checking if the entry exists first?
by Mark in Databases

I was once told that it is faster to just run an insert and let the insert fail than to check if a database entry exists and then inserting if it is missing.

I was also told that that most databases are heavily optimized for reading reading rather than writing, so wouldn't a quick check be faster than a slow insert?

Is this a question of the expected number of collisions

Adding entry to a .tar.gz file using TrueZip pushes that entry with zero size
by GregoryWE in Programming Languages

I am using the TrueZip library to inject an entry to a .tar.gz file.
On running my code, I find the file I want to inject getting pushed to the .tar.gz file.
But the inserted entry has zero size, i.e. it appears that only a placeholder gets created for that entry and its contents are not copied.
Here is the piece of code:

public class FileCompressUtil {
private s

Search engine by Drop Down List selection and text box entry searches Database for the entry and displays in aspx
by Charlie98 in Programming Languages

I am trying to create a search from ProductDB(database), the main columns I would like the user to search is Material_No and Product_Line.

So far, I have the following:

Drop Down List:

<asp:DropDownList ID="DropDownList" runat="server" Height="16px"
onclick="SearchButton_Click" Width="144px"

Save a entry in a table and a relationned entry in other at the same time?
by flakekun in Development Tools & Services

I have a Product table with a field to store the price.
Each time, this price was changing, i need te keep the ancient value. So I have created a table called History to store the product id, the price and the date of changing.
I've also created this method in my product class to generate a new entry :

public function updateHistory($modified) {

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .