If server process is running, return last page state w/ msg AND w/o allowing page code to run (db ac

A

ack95

Not sure how to go about this?

If we have a sql agent job running, we would like to keep a user from
hitting the database via our web app while this 1-2 minute job runs.
Ideally we could catch this at a higher level (httpmodule or
httphandler ?) and let them know that a job is running.

Scenario:
A user has made a few requests in the app and on their next request for
a page, the app checks to see if the job is running, and if so, returns
the exact same page (state and all) that they were just on with a
message alerting them that the database is offline for processing. At
that point it would try re-submitting the request again for the user or
at least would allow them to try again themselves. A behind-the-scenes
AJAX call would maybe work well here?

I could add some code to my basepage in the init, but I am not sure how
to finish the request but also prevent other events (that may hit the
database) from firing. My only thought is something with an httpmodule
or httphandler. Any help is much appreciated.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top