ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

 Top ASP 101 Stories Top ASP 101 Stories
Connections, Commands, And Procedures
What is ASP?
VBScript Classes: Part 1 of N

Single Quotes Work Fine With ADO
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates

Quick Tips

Is The User Still There?

There are times when it's necessary to do rather complex queries in an ASP page. While you can warn a user that a request might take a while, that doesn't always stop them from clicking on it and then not waiting to get the results.

Before starting that next call to your DB for the even more data you've just decided you're going to need, you might want to just pop your head up and check to see if the user still cares about the result.

By default, ASP scripts continue to run to completion even if the user has left. By checking the Response.IsClientConnected propery, you can check to be sure the user still wants the result before embarking on that CPU-killing query you need to run to get it.

Microsoft has a nice simple "How To" on the topic in their Knowledge Base: Q182892.

Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to:

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers