Welcome to WebmasterWorld Guest from 54.167.194.59

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
posts:134
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
-Mike

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
posts:2162
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)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:856
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
[msdn.microsoft.com...]

Building a Better Wait Page By Brian Dunnington
[codeproject.com...]

Asynchronous Data Access in ASP.NET
[aspnet4you.com...]

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

New User

10+ Year Member

joined:Feb 15, 2004
posts:21
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.

Green2K.