Page Method Error Handling Asp Net
Contents |
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/ASP.NET AJAX + Ajax Control Toolkit/PageMethod ErrorHandling? PageMethod ErrorHandling? [Answered]RSS 4 replies Last post May 12, 2008 03:22 PM by redwing19 ‹ Previous Thread|Next Thread › asp.net error handling best practices Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support
Exception Handling In Asp.net C#
Options Advanced Search Related Links GuidanceVideos Reply redwing19 Member 290 Points 179 Posts PageMethod ErrorHandling? May 12, 2008 01:55 PM|redwing19|LINK I
Page Level Error Handling In Asp.net Example
have a situation where the browser is calling a PageMethod every 20 seconds but if the user loses connectivity, and their browser is still open, they'll receive a popup error everytime the browser
Asp.net Mvc Error Handling
attempts to call the PageMethod for as long as they don't have connectivity. I want to handle this error and prevent the popup message from being displayed. I've looked around and have read various methods for how to customize Ajax errors for update panels (http://encosia.com/2007/07/18/how-to-improve-aspnet-ajax-error-handling/), but I haven't found a way handle errors when calling a PageMethod. Any ideas? PageMethods error handling error message Reply Jeev All-Star 16800 asp.net application_error Points 3697 Posts Re: PageMethod ErrorHandling? May 12, 2008 02:18 PM|Jeev|LINK If you hook up the error handler as mentioned in the post.. in the endhandler ..the error should get displayed instead of the popup ..isn't that happening ? Jeev ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you get the answer to your question, please mark it as the answer. Reply redwing19 Member 290 Points 179 Posts Re: PageMethod ErrorHandling? May 12, 2008 03:02 PM|redwing19|LINK Nope, it isn't being called. It never fires my EndRequestHandler event. I did test having using an UpdatePanel, and in that case the EndRequestHandler event is called, so I can handle errors thrown during an UpdatePanel ajax call. But the EndRequestHandler doesn't seem to be raised using PageMethods..... Reply Jeev All-Star 16800 Points 3697 Posts Re: PageMethod ErrorHandling? May 12, 2008 03:06 PM|Jeev|LINK Ok.. Why not try the approach where you set an error handler callback method when you call the service like the one below http://asp.net/ajax/documentation/live/tutorials/ConsumingWebServicesWithAJAXTutorial.aspx Jeev ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you get the answer to your question, please mark it as the answer. Reply redwing19 Member 290 Points 179 Posts Re: PageMethod ErrorHandling? May 12, 2008 03:22 PM|redwing19|LINK That did the trick, thanks. ‹ Previous Thread|Next Thread › This site