Asp net detailsview not updating

The Item Updating event is raised when an Update button within a Details View control is clicked, but before the update operation.

This allows you to provide an event handler that performs a custom routine, such as canceling the update operation, whenever this event occurs.

Thanks Regards "Munna" news:6b**********************************@k37g2000 hsf... On Jun 22, am, "John" Hi I have a Details View that is bound to a sql server.

I use all data Bound Field in Details View from SQL Server.

Hi I have a Details View that is bound to a sql server.

Problem is when I press the auto generated Edit button make some change and press the Update link I get the below error; Updating is not supported by data source 'mysqlserver' unless Update Command is specified.

After the user clicks the update button to edit and update selected record details, if he or she clicks the Add Row Button then they will be able to add a new record to the database.

I was stocked for sometime using the 2.0 Details View control to Edit/Update data.

asp net detailsview not updating-22asp net detailsview not updating-68

This was the only way I got things to worked for me.Problem 2: When clicking the update button I handle the updating of the order in the Item Updating event but the Item Updated never fires and the Details View never change the mode to Read Only after the data was updated.Details View control always stayed on the Edit Mode.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.

Leave a Reply