Detailsview itemupdating event example
You can also indicate whether the exception was handled in the event handler by setting the Exception Handled property.
If it's bound via Linq Data Source, Sql Data Source or Object Data Source I suggest you have a look at the Updating Event.
A Details View Update Event Args object is passed to the event handler, which allows you to determine the index of the record being updated and to indicate that the update operation should be canceled.
To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.
Did you try debugging the code by putting a break point in that method with F9 and then running the site by pressing F5? As an alternative, you can take advantage of AJAX to page through records.When you take advantage of AJAX, only the control and not the entire page is updated when you navigate to a new page of records.A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source. For more information about how to handle events, see Handling and Raising Events. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Time Now, WHERE (ID = @ID)" __________________ Imar Spaanjaars