|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Urgent User COntrolHi 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 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 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
Get Value of a control from my Own Control
asp:button Text= ASP datagrid not passing text to Excel Call Page from Control Parser Error Disable ButtonColumn button control through code Viewstate Binding to listbox / using data access object Looking for sorted list webcontrol the process cannot access the file because it is being used by another process |
|||||||||||||||||||||||