PC Review


Reply
Thread Tools Rate Thread

Creating a please wait dialog

 
 
Jeremy Chapman
Guest
Posts: n/a
 
      11th Aug 2005
I have a button on my page which when clicked redirects to another page. on
the page load of the page that I've redirected to, there is a long query.
What I want to do is with dhtml, display test in the center of the screen
saying 'please wait..' so that the text displays until the new page is
returned. My problem is that the html is not visually updated because the
browser is busy waiting for the http request to complete. Is there any way
around this?


 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      11th Aug 2005
This is simplest solution I've seen:
http://www.aspnetpro.com/NewsletterA...200308bm_l.asp

--
I hope this helps,
Steve C. Orr, MCSD
http://SteveOrr.net


"Jeremy Chapman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a button on my page which when clicked redirects to another page.
>on the page load of the page that I've redirected to, there is a long
>query. What I want to do is with dhtml, display test in the center of the
>screen saying 'please wait..' so that the text displays until the new page
>is returned. My problem is that the html is not visually updated because
>the browser is busy waiting for the http request to complete. Is there any
>way around this?
>



 
Reply With Quote
 
Jeremy Chapman
Guest
Posts: n/a
 
      11th Aug 2005
I don't think this will work for me because the contents of the original
page will disappear until the results of the new page appear. I want a
please wait dialog to display over top of the original page to make things
look seamless. I'm sure I can avoid using an intermediate page to achieve a
please wait dialog, somehow there must be a way to force the dhtml change
to visually update.

"Steve C. Orr [MVP, MCSD]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> This is simplest solution I've seen:
> http://www.aspnetpro.com/NewsletterA...200308bm_l.asp
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> http://SteveOrr.net
>
>
> "Jeremy Chapman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I have a button on my page which when clicked redirects to another page.
>>on the page load of the page that I've redirected to, there is a long
>>query. What I want to do is with dhtml, display test in the center of the
>>screen saying 'please wait..' so that the text displays until the new page
>>is returned. My problem is that the html is not visually updated because
>>the browser is busy waiting for the http request to complete. Is there
>>any way around this?
>>

>
>



 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      11th Aug 2005
You may want to check out these 2 examples from
Dave Sussman's and Alex Homer's "ASP 1.1 Insider Solutions" :

http://www.daveandal.net/books/6744/...implewait.aspx
http://www.daveandal.net/books/6744/...ogressbar.aspx

There's links to source code in both,
and I think they do what you're looking for.



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Jeremy Chapman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I don't think this will work for me because the contents of the original page will
>disappear until the results of the new page appear. I want a please wait dialog to
>display over top of the original page to make things look seamless. I'm sure I can avoid
>using an intermediate page to achieve a please wait dialog, somehow there must be a way
>to force the dhtml change to visually update.


> "Steve C. Orr [MVP, MCSD]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> This is simplest solution I've seen:
>> http://www.aspnetpro.com/NewsletterA...200308bm_l.asp
>>
>> --
>> I hope this helps,
>> Steve C. Orr, MCSD
>> http://SteveOrr.net
>>
>>
>> "Jeremy Chapman" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>I have a button on my page which when clicked redirects to another page. on the page
>>>load of the page that I've redirected to, there is a long query. What I want to do is
>>>with dhtml, display test in the center of the screen saying 'please wait..' so that the
>>>text displays until the new page is returned. My problem is that the html is not
>>>visually updated because the browser is busy waiting for the http request to complete.
>>>Is there any way around this?
>>>

>>
>>

>
>



 
Reply With Quote
 
Jeremy Chapman
Guest
Posts: n/a
 
      12th Aug 2005
I think this will do what I need. Thanks.
Unfortunately the refresh causes the little progress bar in the status bar
of the browser to disappear, so at first I thought my implementation wasn't
working, but it does seem to work. Thanks.

"Juan T. Llibre" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You may want to check out these 2 examples from
> Dave Sussman's and Alex Homer's "ASP 1.1 Insider Solutions" :
>
> http://www.daveandal.net/books/6744/...implewait.aspx
> http://www.daveandal.net/books/6744/...ogressbar.aspx
>
> There's links to source code in both,
> and I think they do what you're looking for.
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
>
> "Jeremy Chapman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I don't think this will work for me because the contents of the original
>>page will disappear until the results of the new page appear. I want a
>>please wait dialog to display over top of the original page to make things
>>look seamless. I'm sure I can avoid using an intermediate page to achieve
>>a please wait dialog, somehow there must be a way to force the dhtml
>>change to visually update.

>
>> "Steve C. Orr [MVP, MCSD]" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> This is simplest solution I've seen:
>>> http://www.aspnetpro.com/NewsletterA...200308bm_l.asp
>>>
>>> --
>>> I hope this helps,
>>> Steve C. Orr, MCSD
>>> http://SteveOrr.net
>>>
>>>
>>> "Jeremy Chapman" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>>I have a button on my page which when clicked redirects to another page.
>>>>on the page load of the page that I've redirected to, there is a long
>>>>query. What I want to do is with dhtml, display test in the center of
>>>>the screen saying 'please wait..' so that the text displays until the
>>>>new page is returned. My problem is that the html is not visually
>>>>updated because the browser is busy waiting for the http request to
>>>>complete. Is there any way around this?
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Hasan Imam
Guest
Posts: n/a
 
      2nd Aug 2006
I think if you use javascritp is easier.

OnClick button you add attribute like this:

btnSave.Attributes.Add("onclick", "return PleaseWait()")

Javascript function is:

function PleaseWait(){
document.getElementById("LabelMsg").value='Please wait while your
request is being processed';
}

LabelMsg is your Label where you want to put your message While Wait.

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Stephan Smetsers
Guest
Posts: n/a
 
      27th Sep 2006
Hi,

I have created a true MVC-pattern for ASP.NET that allows dialogs
windows in ASP.NET just like you would do when using WinForms.
I am using a technique called server-side-blocked calls (server-side
AJAX).
On my website there are four demos online and also a recording of a
live-coding-example (executable desktoprecording).

http://www.inchl.nl

The framework is freeware and is currently being applied in several
projects.
It's real cool, please tell all your friends about it!
It has saved me a lot of developping time.

Kind regards,

Stephan Smetsers
(E-Mail Removed)
http://www.inchl.nl


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel wait for Find Replace dialog box in Word JasonC Microsoft Excel Programming 4 24th May 2010 09:34 PM
Animation for wait dialog Sin Jeong-hun Microsoft C# .NET 2 18th Jul 2008 02:33 PM
Wait while processing dialog boxes (threading?) Dustin Davis Microsoft VB .NET 3 1st May 2006 11:53 PM
Please Wait Dialog =?Utf-8?B?SmFrZQ==?= Microsoft Dot NET Framework Forms 1 15th Feb 2005 10:23 PM
long wait for Open file dialog to populate..... m miller Windows XP Help 4 8th Jan 2004 05:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:26 AM.