title: ASP.Net: How to stop page execution when browser disconnects?
body: <p>If a browser requests an ASP.Net page and then the user clicks &quot;stop&quot; or navigates away, I thought that the browser would close the connection and ASP.Net would perhaps stop execution. I don't think that's the case since Dispose() is not called when I test this. Is there anyway to know when the browser/client has disconnected and then stop the page from executing?</p>