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.
Only chk Active and txt Statement in the code below are Editable.
So when I click Edit, edit the fields and click Update, it does go to the Item Updating event, but I'm not being able to retrieve the updated values.
I get error- Unable to cast object of type 'System.
'Vb code Protected Sub Details View1_Item Updating(By Val sender As Object, By Val e As System.
event is raised when a Delete button within the Details View control is clicked, but after the delete operation.
This allows you to provide an event handler that performs a custom routine, such as checking the results of the delete operation, whenever this event occurs.
This allows you to provide an event handler that performs a custom routine, such as canceling the update operation, whenever this event occurs.
A Details View Update Event Args object is passed to the event handler, which allows you to determine the index of the record being updated and to indicate that the update operation should be canceled. New Values collections, if necessary, before the values are passed to the data source.
The product table is not updating with the new values.