Home All Groups Group Topic Archive Search About
Author
7 Apr 2005 5:26 PM
Prince Mathew
Hi All,



I have a requirement. I am throwing an exception from my user control I want
to catch this in my container page. Is this possible?

I don't want any event to be raised.

PLEASE HELP ME.



Thanks

Prince

Author
8 Apr 2005 7:11 PM
Steve Goodyear
Hi Mathew,

Yes you can. The Page has a "Error" event which is where you can catch all
exceptions at the Page level: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuitemplatecontrolclasserrortopic.asp

Cheers,
Steve Goodyear
Vancouver, Canada
Author
9 Apr 2005 11:17 AM
Prince Mathew
Steve.
I dont want to use Error event. I want to show the error in the same page.
If you use handle Error event you cannot do anything in the current page.
You are out of that context.
Thanks
Prince
Show quoteHide quote
"Steve Goodyear" <SteveGoody***@discussions.microsoft.com> wrote in message
news:0D0325D7-5463-42B2-BD0B-28117E8A9A9F@microsoft.com...
> Hi Mathew,
>
> Yes you can. The Page has a "Error" event which is where you can catch all
> exceptions at the Page level:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuitemplatecontrolclasserrortopic.asp
>
> Cheers,
> Steve Goodyear
> Vancouver, Canada