Detailsview itemupdating

posted by | Leave a comment

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.

To cancel the update operation, set the collections before the values are passed to the data source.This includes Update, Edit, Cancel, Delete, Insert, New, and Page.So, if you add a button to a Details View with Command Name="Update", then the update will be initiated when the command is clicked.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. When all you've got is a Hammer, Every Problem looks like a Nail. Details View (and Grid View) don't work properly when not used with a proper datasource. New Values is used it is returning null and dv User. also, this is what superguppie is suggesting too (out of two options for you) Looking up the Controls should work. Page protected void Page_Load(object sender, Event Args e) protected void Radio Button List1_Selected Index Changed(object sender, Event Args e) protected void Details View1_Item Updating(object sender, Details View Update Event Args e) protected void Edit Button_Click(object sender, Event Args e) protected void Update Button_Click(object sender, Event Args e) protected void Cancel Button_Click(object sender, Event Args e) The Item class is as before.

Leave a Reply

top dating sites for america americans