开发者

PageMethods and Application_Error - ASP.NET Webforms

My application is setup to log exceptions and this is done in the Application_Error method. I've started adding Page Methods (which are static). Exceptions in Page Methods do not trigger the Application_Error method in Global.asax.开发者_StackOverflow中文版cs

What is the best practice to catch these exceptions?

PS: I am using JQuery ajax to call PageMethods


I would recommend you look into ELMAH. Don't reinvent the wheel if you don't need to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜