M
Mythran
We have a class that contains the Fetch/Insert/Update/Delete methods that a
DataObjectSource uses to fetch/insert/update/delete for a GridView control.
The Fetch method accepts a single parameter which is a custom class used for
building a search that is then transformed into SQL based on user-input.
Inside the class containing the Fetch/etc. methods, the Fetch method may
throw an exception because the user didn't enter anything in a search/fetch.
The exception is a custom validation exception that notifies the user that
they are required to enter at least one criteria field in order to perform
the search. Is there an event, method, etc. that I can use on either the
ObjectDataSource or GridView control classes to handle the error and display
a message to the user instead of the page redirecting to the unhandled
exception page?
Thanks,
Mythran
DataObjectSource uses to fetch/insert/update/delete for a GridView control.
The Fetch method accepts a single parameter which is a custom class used for
building a search that is then transformed into SQL based on user-input.
Inside the class containing the Fetch/etc. methods, the Fetch method may
throw an exception because the user didn't enter anything in a search/fetch.
The exception is a custom validation exception that notifies the user that
they are required to enter at least one criteria field in order to perform
the search. Is there an event, method, etc. that I can use on either the
ObjectDataSource or GridView control classes to handle the error and display
a message to the user instead of the page redirecting to the unhandled
exception page?
Thanks,
Mythran