I have a page that access Database running a heavy stored procedure and return a result, the result will be displayed depending on a session variable Session["isShown"] for example.
I would like to using Ajax to call another page to set :
xmlhttp.open("POST", "frmCancelWfSearch.aspx", true);
xmlhttp.send();
how to run frmCancelWfSearch.aspx asynchrounously to set that Session["isShown"] to false?
Implement your server code in an IHttpAsyncHandler
and also implement IRequiresSessionState
so you have access to the session.
http://msdn.microsoft.com/en-us/magazine/cc164128.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With