i'm trying to insert or update data into a database from detailsview through coding.
without giving a datasource to details view, because it is very easy.
On Bubble Event(Object source, Event Args e) at System.
Raise Bubble Event(Object source, Event Args args) at System.
Please review the stack trace for more information about the error and where it originated in the code. Source Error: An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using the exception stack trace below.[Http Exception (0x80004005): The Details View ' Details View1' fired event Mode Changing which wasn't handled.] System.
On Mode Changing(Details View Mode Event Args e) 1395242 System.
Handle Event(Event Args e, Boolean causes Validation, String validation Group) 540 System.
A Details View Mode Event Args object is passed to the event handler, which allows you to determine the new mode, to determine whether the mode change was a result of the user canceling an edit operation, or to cancel the mode change. On Bubble Event(Object source, Event Args e) 113 System. Raise Post Back Event(String event Argument) 135 System. If it isn't, please let me know and I will repost appropriately. This page is a great reference for Form View controller: View Update: I've updated code to refelct Phaedrus suggestion. Try removing this line of code and let me know if it resolved your issue. Current status is that even after clicking Edit button, the content from Item Template is loaded. You have to specify which method handles the Mode Changing event. Now I get the following error: No overload for 'fw Hotel Details_Mode Changing' matches delegate ' System.