Author: Frinavale | Posted on: 7/25/2008 4:50:22 PM | Views : 888

I have a peculiar problem...Background 
I have a function that I don't want the user to execute more than once while they are waiting for it to process; therefore, I disable all of the controls on the page via some JavaScript before the request is sent. This function takes some time to execute because it has to communicate with hardware that is rather slow.  This slowness combined with a little bit of lag sometimes results in a  Sys.WebForms.PageRequestManager TimeoutException.  Since I disable all of the controls during this processing, and because this exception prevents the server responding to the browser, my web page becomes unusable.
To fix this problem I ended up writing a JavaScript function that enables the "Exit" button on the page and displays a message informing the user that there was a problem when ever a Ajax Exception occurs...(this has been implemented in a function that is attached to the EndRequest event for ...

Go to the complete details ...