Detailsview updating does not work

6854933580_2c8b688306_z

One simple example is: I want to set the date and time of the update into a data field of a record. ...atlas update panel, update progress bar, calendar control gridview, to detailsview i have an atlas update panel that contains the calendar control, and gridview controls - outside the update panel i have an update progress bar image that animates while u search and wait for the selected date results to load in the gridivew.

detailsview updating does not work-63detailsview updating does not work-6

What I'm trying to figure out is, how can I add the appropriate fields (hidden) to the Details View and skip the business object?

I added to the edit item template of that field a simple label control, and i want to change the color of the control to red, whenever the user updates the page.

But for some reason i can't seem to do that, its like i can't control the inner controls of the details View in the updating command.

You might want to explore additional data capabilities of ASP.

="DELETE FROM [Customers] WHERE [Customer ID] = @original_Customer ID AND [Company Name] = @original_Company Name AND [Contact Name] = @original_Contact Name AND [Contact Title] = @original_Contact Title AND [Address] = @original_Address AND [City] = @original_City AND [Region] = @original_Region AND [Postal Code] = @original_Postal Code AND [Country] = @original_Country AND [Phone] = @original_Phone AND [Fax] = @original_Fax"="INSERT INTO [Customers] ([Customer ID], [Company Name], [Contact Name], [Contact Title], [Address], [City], [Region], [Postal Code], [Country], [Phone], [Fax]) VALUES (@Customer ID, @Company Name, @Contact Name, @Contact Title, @Address, @City, @Region, @Postal Code, @Country, @Phone, @Fax)"="UPDATE [Customers] SET [Company Name] = @Company Name, [Contact Name] = @Contact Name, [Contact Title] = @Contact Title, [Address] = @Address, [City] = @City, [Region] = @Region, [Postal Code] = @Postal Code, [Country] = @Country, [Phone] = @Phone, [Fax] = @Fax WHERE [Customer ID] = @original_Customer ID AND [Company Name] = @original_Company Name AND [Contact Name] = @original_Contact Name AND [Contact Title] = @original_Contact Title AND [Address] = @original_Address AND [City] = @original_City AND [Region] = @original_Region AND [Postal Code] = @original_Postal Code AND [Country] = @original_Country AND [Phone] = @original_Phone AND [Fax] = @original_Fax"From your description, it almost sounds like the update event is not being fired.

A Visual Studio project with source code is available to accompany this topic: Download.

You must have an account to comment. Please register or login here!