Vb net detailsview itemupdating
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.
When the update button is pressed it takes to Grid View_Item Updating event as shown below code.
Find Control("address"); FYI, something similar works in my case and I did another test last night after I saw your thread to confirm before I replied. I have tested using current Details View Boun Field columns as well as Template Field columns.
Regarding on the accesing Bound Field nested controls in Details View control, since it is autogenerated by runtime and will assign a random id according to the item index, we can not use Find Control method to locate the nested control instance When Bound Fields or Template Field used in Details View control during the Edit and Item Updating event either Bound Field columns new Text or Template Field new Text can not be accessed. Either of them are not returning new values i m afraid.
Is the Template Field necessary to get the new values during Item Updating event?
In order to take off any doubts below is my for your suggestion.