Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

How to implement a "loading..." or "please wait"



8:02 pm on Jun 22, 2005 (gmt 0)

10+ Year Member

Hello all,

I'm looking for some information on how to implement a "Loading..." or "One Moment Please" page while a time-consuming database query returns. I have posted it in here to, hopefully, get an asp.net solution.

I apologize for making this post, but it's one of those things that I just can't think of a good google query to get results back on. Forgive me, but I need some biological brain power. Links to written materials on the topic would be much appreciated.

thank you


9:47 pm on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

I'd try and make the bottleneck to be the bandwidth then hard disk I/O but never the processors, so I wouldnt attempt to solve this one that way.

But if you do, possibly you could call a response.flush before querying and send a status bar back, also just warn the user when they click the button and use a "if IsClientConnected" before displaying the results as they might of gone somewhere else.


5:49 pm on Jun 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

There are a few Articles I know about that cover this topic, with sample code and explanations. I am just going to paste the links here and hope the moderator will allow them.

Design Patterns- Asynchronous Wait State Pattern in ASP.NET by Lyn Robison

Building a Better Wait Page By Brian Dunnington

Asynchronous Data Access in ASP.NET


10:33 am on Jun 25, 2005 (gmt 0)

10+ Year Member

Solution you have seen on the web is as follows. It isn't widely documented.

Have a hidden z-layer with "waiting" message and activate that as part of some javascript associated with the submit button.

Works like this:

action page
click button
z-layer brought to front: "wait..."
intensive query activated
when query has finished results will be displayed

Hope this helps.



Featured Threads

Hot Threads This Week

Hot Threads This Month