Click here to Skip to main content
13,199,852 members (67,684 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All,
How can I create Global Error Handler for Static Page Methods?
Posted 3-Jan-13 8:05am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 ?
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.
Marcus Kramer 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171020.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100