Re: Reload Page Command

From: Alan Z. Scharf (ascharf_at_grapevines.com)
Date: 05/14/04


Date: Fri, 14 May 2004 16:00:28 -0400

Hi Steven,

I realized what I'd like to do is the following:

1. Right now, my Progress page has six async calls and completion handlers.
The Refresh page is continually refreshing every 5 seconds and is contained
in the Progress page as an iFrame..

2. Instead of the continual refreshes of the Refresh page, I would like to
call a refresh (Submit) of the Refresh page as part of each completion
handler on the main Progress page.

That way, the Refresh page would only refresh at completion of each of the
six async routines.

3. Is this possible, i.e. either

(a) calling a "submit" of the iFrame on the Progress page, or

(b) passing a submit command through to the Refresh page from the Progress
page completion handlers?

Thanks again for your help and examples.

Regards,

Alan

"Steven Cheng[MSFT]" <v-schang@online.microsoft.com> wrote in message
news:VeTVhxJOEHA.3564@cpmsftngxa10.phx.gbl...
> Hi Alan,
>
> Thanks for the followup. To answer your question:
>
> 1. I have no idea how to control the http-equiv = "refresh" meta of the
> page
>
>
> 2. Of course ,we can use javascript code to post a page after a certain
> period of time. The
> window.setTimeout function is just for such function. For example:
> We define the following function "setTimer()" and in it we add the
> window.setTimeout("document.forms[0].submit()",1000);
> which indicate that the page will be submit 1 second later after we call
> this function.
>
> <script language="javascript">
>
> function setTimer()
> {
> window.setTimeout("document.forms[0].submit()",1000);
> }
>
> </script>
>
>
> Then, we can call this function at the page's clientside's onload event,
> just like:
> <body onload="setTimer()" >
>
> And if we want to control whether to call it or not at serverside. We can
> use
> Page.RegisterStartupScript method to programmatically add this script
call,
> just as below:
>
> private void Page_Load(object sender, System.EventArgs e)
> {
> Page.RegisterStartupScript("setTimer","<script
> language='javascript'>setTimer();</script>");
> }
>
> Hope this helps. Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
>



Relevant Pages

  • Re: How do display progress with a logn running server side task
    ... The current solution I used is to write the progress to a file on server ... and then use another popup window that use javascript to continuously ... display the content of the file and refresh within time intervals. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Refreshing modeless dialogs?
    ... What is the preferred way to refresh modeless dialogs? ... The dialog class has nonvisual properties containg the progress status data ... void SequentialProcess() ... And the ProgressDialog should refresh itself, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Newbie: Form Load Control Issues...
    ... My issue is when the app runs, the progress ... >> bar fillin in, and the title bar of the form, but the rest of the form is ... > Call 'Application.DoEvents' and the form's or control's 'Refresh' method ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Refresh form after selecting button in option group
    ... Peter Stone wrote: ... have a list box and one of the columns displays the state of Progress of each ... Where do I refresh to update the list? ... MVP ...
    (microsoft.public.access.formscoding)