homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

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

10+ Year Member

Msg#: 2823 posted 8:02 pm on Jun 22, 2005 (gmt 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



WebmasterWorld Senior Member 10+ Year Member

Msg#: 2823 posted 9:47 pm on Jun 22, 2005 (gmt 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.


WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

Msg#: 2823 posted 5:49 pm on Jun 24, 2005 (gmt 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+ Year Member

Msg#: 2823 posted 10:33 am on Jun 25, 2005 (gmt 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.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved