Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
How can I create Global Error Handler for Static Page Methods?
Thanks,
Posted

1 solution

A global error handler on a website will be called for all pages. It has nothing to do with AJAX, unless you mean the AJAX methods being called on the server are static ( they don't need to be ). What makes you think static methods are ignored ?
 
Share this answer
 
Comments
zeeShan anSari 3-Jan-13 14:16pm    
let's suppose there are many PageMethods in different pages of website. But now i want make a generic exception handler because i don't want change in my code. Like as function endRequest(sender, args) for PageRequestManager.
Christian Graus 3-Jan-13 14:19pm    
Your global.asax has exactly a method like that, to handle exceptions across the site.
zeeShan anSari 3-Jan-13 14:22pm    
no global.asax can't catch the error in pagemethod.
fjdiewornncalwe 3-Jan-13 15:12pm    
Yes, global.asax is set up to do exactly that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900