T
Thomas
Hi,
I have a dataview and ObjectDataSource controls in an .aspx page. The
ObjectDataSource has a SelectMethod with selectParameters collection. The
DataView is bound to the objectdatasource with its property DataSourceID
inside the aspx page (not dynamically in the code). I would like to handle
properly an exception that occurs in SelectMethod of ObjectDataSource
control. I put a try/catch block in the SelectMethod (the exception is just
thrown with "throw;" instruction) but I don't figure how to catch it in
..aspx page where the dataview and the objectdatasource controls are
declared. The selectMethod run once the dataview is bound to the
objectdatasource but if an exception occurs the error page is displayed.
Thanks in advance for your help.
Regards,
Thomas
I have a dataview and ObjectDataSource controls in an .aspx page. The
ObjectDataSource has a SelectMethod with selectParameters collection. The
DataView is bound to the objectdatasource with its property DataSourceID
inside the aspx page (not dynamically in the code). I would like to handle
properly an exception that occurs in SelectMethod of ObjectDataSource
control. I put a try/catch block in the SelectMethod (the exception is just
thrown with "throw;" instruction) but I don't figure how to catch it in
..aspx page where the dataview and the objectdatasource controls are
declared. The selectMethod run once the dataview is bound to the
objectdatasource but if an exception occurs the error page is displayed.
Thanks in advance for your help.
Regards,
Thomas