I'm using ScriptManager to connect up to several Web Services that I have created. The problem that I am having is that the user's session/authorization expires and the next time they try to do anything they get a JavaScript alert box with some exception details in it. I would prefer to handle this error somehow and redirect them back to the login page. Any insight in how to do this? I've noted that each
Web Service Method that is generated by the ScriptManager contains parameters for both onSuccess and onFailure JS functions. I could probably utilize the onFailure, but I'm not sure what to look for in the onFailure to determine what type of exception it is. Also, I am hoping for something a little more global so that I don't have to attach the same error handler function to each and every call I make to the Web Service.
I don't know if it helps, but here is some code:
<asp:Script ...
Go to the complete details ...