Asp detailsview itemupdating
I can see the control switch to edit mode properly, but after clicking the save icon, the overriden Item Updating event that I wrote does not fire. The Mode Changing and Init events fire because they specify a Handles clause.If I set the Default Mode of the control to Edit, it works as expected, but I do not want to leave it in edit mode all the time. The Item Updating event also specifies a similar Handles clause, but it still does not fire.Only chk Active and txt Statement in the code below are Editable. So when I click Edit, edit the fields and click Update, it does go to the Item Updating event, but I'm not being able to retrieve the updated values. When you're in the Edit mode, you can't extract the Text property out of the Cell. Pass 1 control value to another control value I have this form, is the detailsview, and in edit mode, I have a link that you click to open up a small dhtml window (not a new window but more like a layer so everything is on the same page). Alok Hi aloksinha83, Please see this post: Qin Dian Tang Microsoft Online Community Support Please remember to mark the replies as answers if they help and unmark them if they provide no help....I want the default view to be Read Only and to display an edit icon to switch to edit mode.
You can use the Details View control to update existing database records.my idea is to provide a button in the form , when this button is pressed it's getting the values from controls and pass it string where a qurey is performed against db and the result is displayed in gridview.my question is that how can i get the value of controls when i press the mentioned button.The product table is not updating with the new values.
I think the problem is to do with the new values from the textbox not being retrieved.
I get error- Unable to cast object of type 'System.