Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Urgent User COntrol

Reply
Thread Tools

Urgent User COntrol

 
 
Prince Mathew
Guest
Posts: n/a
 
      04-07-2005
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


 
Reply With Quote
 
 
 
 
Steve Goodyear
Guest
Posts: n/a
 
      04-08-2005
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/de...errortopic.asp

Cheers,
Steve Goodyear
Vancouver, Canada
 
Reply With Quote
 
 
 
 
Prince Mathew
Guest
Posts: n/a
 
      04-09-2005
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
"Steve Goodyear" <> wrote in message
news:0D0325D7-5463-42B2-BD0B-...
> 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/de...errortopic.asp
>
> Cheers,
> Steve Goodyear
> Vancouver, Canada



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Control to Control Other User Control Jonathan Wood ASP .Net 4 02-02-2010 03:41 PM
persisting changes to a control outside a user control from the user control? Mad Scientist Jr ASP .Net 0 03-22-2006 08:02 AM
Event not firing for user control inside user control vatech1993 ASP .Net 4 12-11-2004 02:51 PM
returning the selected value of a listbox control inside a user control - please urgent! Moe Sizlak ASP .Net 4 07-20-2004 10:11 PM
Manipulating a User Control from another User Control Tom Rowton ASP .Net 2 08-01-2003 08:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57