Asp net detailsview not updating
Introduction Details View is a Data Bound control of ASP.
NET used to display a single record from a Data Source in the form of a table, where each row represents a field of the record.
What is the Updat Command that I need to specify if my Select command is SELECT Field A, Field B FROM My Table?
Thanks Regards On Jun 22, *am, "John" Hi I have a Details View that is bound to a sql server.
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.
The Item Updated event never fired but I got the Details View to works how I wanted.
But I can't see why it wouldn't be bringing back the new textbox 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.
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.