I am getting an unknown error when Ajax update panels submit a request after 1 hour. The request is not going to the server.
If the request goes to the server, the server will automatically redirect to the login page. I am trying to force the page to send the request to the server, so the server will take care of the login page.
Finally, I was able to handle the error when the error occurred, but how can I force it to submit the request to the server using JavaScript or jQuery?.
<script type="text/javascript" language="javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args){
if (args.get_error() != undefined){
args.set_errorHandled(true);
}
}
</script>
Add this function call:
__doPostBack('', '');