Go to DotNetFunda.com
 Online : 1478 |  Welcome, Guest!   Login
 
Home > Forums > ASP.NET 3.5 > how we handle exceptions in asp.net application ...

ASP.NET 3.5 Forum



how we handle exceptions in asp.net application

Author: Jameschowdare | Posted on: 2/8/2010 | Category: ASP.NET 3.5 | Views: 54 | Level: Starter | Status: [Member] |

dont tel use try catch...

i want to know instead of each page using above

is there the centralization procedure there,

and where these store all the logged information
and explain us more on this if i missed about anything abt exception handling


Thanks
JamesOnly


Reply

Interesting?   Share and Bookmark this

 Responses

Raja  
Posted on: 2/8/2010 9:17:59 AM
Level: Starter | Status: [Member] | Reply

This can be done using Application_Error event in the Global.aspx file, so if any error will occur this method will fire and you can log that error wherever required.

Also go through this link, it might help http://www.15seconds.com/issue/030102.htm

Regards


Regards,
Raja

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

Nishithraj  
Posted on: 2/11/2010 4:03:10 AM
Level: Bronze | Status: [Member] | Reply

Even you can capture the error events in global.asax
void Application_Error(object sender, EventArgs e) 

{
// Code that runs when an unhandled error occurs

}


for more about the try catches disadvantages refer

http://forums.asp.net/p/1344201/2728069.aspx


With regards
Nishithraj Narayanan

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

Latest Posts

More ... 

 Write New Post


Advertisement

About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)