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)

Junior Member

10+ Year Member

joined:Jan 5, 2005
votes: 0

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 June 22, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
votes: 0

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 June 24, 2005 (gmt 0)


WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
votes: 0

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 June 25, 2005 (gmt 0)

New User

10+ Year Member

joined:Feb 15, 2004
votes: 0

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.