Global.asax file in vb.net

Posted by Naimishforu under VB.NET on 2/24/2011 | Points: 10 | Views : 3272 | Status : [Member] [MVP] | Replies : 2
Hi,

have heard that if any error occured in try and catch block, it will be handled in global.asax

any idea how??

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/



Responses

Posted by: Madhu.b.rokkam on: 2/24/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
If there is any error the Application_Error method of global.asax gets executed so there you can have your code to either log or do what ever you want to do.


Thanks and Regards
Madhu

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/24/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Global.asax has many events which wil be triggered at certain levels. Out of those events Application_error is the one which will trigger when ever any error occurs in the application. Check the below link to get in detail.

http://www.techrepublic.com/article/working-with-the-aspnet-globalasax-file/5771721

Thanks
Karthik
www.f5Debug.net

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response