I have a Details View with a Drop Down List in an Edit Item Template, I know, pretty cool right?But when I try to Update the table with a new value from the Drop Down List the table does not get updated with the new value.This article walks through creating an editable List View control, with the finished results available for download at the end of the article. (It is assumed that the reader is familiar with how to edit data using a data source control.If this is not the case, please first read Accessing and Updating Data in ASP.Namely, each field in the Grid View or Details View is rendered in its editing interface; Bound Fields display a Text Box control while Check Box Fields display an enabled checkbox.
I am using gridview's default update method in which it allows me to update row in gridview itself by converting cells into textboxes.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.I want to check validations that if a particular textbox (cell) remains empty or blank then it should not update its value.Private Sub Form View1_Item Updating(sender As Object, e As Form View Update Event Args) Handles Form View1. It's been about two days now that I am on this :( What am I doing wrong?
As when I assign updated Name to Label1 it displays the old product name value and not the one in the textbox.