Vb net detailsview itemupdating
Among the solutions named often are looking up the Controls to take the values, and using Object Data Source. Please remember to click “Mark as Answer” on the post that helps you. so I suggested to use this: Text Box test = (Text Box) dv Record. This can be beneficial to other community members reading the thread. 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. But when i set up a breakpoint and read changed Text Box value, it is still the old value( the value before Edit button is pressed). In other words it is not reading Newly entered value during Edit/Update process. New Values is a collection that holds the new values that were entered. Command Name Case "Add" Case "Edit" ' Do this when going into edit mode so changes to the panent's tuition total balance can be updated.
In my previous article Details View Rich Data Control we have learned how to use Details View using SQLData Source data control...
You use it to change or update any values, prior to the data being written back to the data store.
You would either access the values via index or key.
I got many mails about how to use Details View without SQLData Source.
I have a detailsview that I dragged and dropped onto a aspx web form and am trying to get the insert and update buttons to work through the code behind. Do you think you can look at my code as see what might be wrong.