Detailsview itemupdating event

The second lesson in this chapter demonstrates how you can bind to data to allow users to interact with it.

detailsview itemupdating event-71detailsview itemupdating event-40detailsview itemupdating event-54

I think the problem is to do with the new values from the textbox not being retrieved.

As when I assign updated Name to Label1 it displays the old product name value and not the one in the textbox.

But I can't see why it wouldn't be bringing back the new textbox values.

Ok, Now I'm sure this was working the other day and I don't think I've changed anything but now it's not working and I can't see anything wrong with the code.

Basically I have a details view with product information in it, when the user clicks edit it goes into edit mode when I change any of the fields and click update it updates but with the old values.

Here is my detailsview: I tried adding a label to my page and then once updated Name had been assigned the value of the textbox I tried assigning that value to the label and it printed out the old product name not the one in the textbox.

I can't see anything wrong with the code and it's driving me mad. hi, i think you miss something, try to see the table where you save the value of the fields you entered if it change anything, if it change anything, then you have put some code on your SP that retrieves data after the UPDATE code that you have.

NET data source controls, demonstrates how you can bind to data to allow users to interact with it, and presents the new Dynamic Data features of ASP.

NET that allow you to easily create websites for working with the CRUD operations of an entire data model that exists as either a Data Context (such as LINQ to SQL) or an Object Context (such as LINQ to Entities). NET provides several server controls that build on top of the features of Microsoft ADO. These controls simplify the development of data-driven websites.

They make it easier to build webpages that access, display, manipulate, and save data. You use these controls to configure access to data that you intend to use on a webpage.

Using these controls can provide development efficiency when you are building business applications that rely heavily on data. A data source can be a relational database, data stored inside of in-memory objects (such as a Data Set or an Entity Data Model), XML-based data, or data you retrieve via Microsoft Language-Integrated Query (LINQ).

Comments are closed.