October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can handle the Selected, Inserted, Updated, or Deleted events to handle any errors that might result from calling a method. For example, the page in Listing 18.34 handles the Inserting event to capture any errors raised when the method represented by the ObjectDataSource control’s InsertMethod property is called.
Listing 18.34. HandleErrors.aspx



In Listing 18.34, the Inserted event handler checks for an exception. If ...
Read now
Unlock full access