Re: Reload Page Command

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

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


Date: Thu, 13 May 2004 09:23:31 -0400


Steven,

Thanks again for the detailed example.

I will try it out and let you know how it goes.

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: Ron de Bruins copy5 code amendment
    ... exhausted what brains I have. ... > Hi Ron, ... >> regards, Alan ...
    (microsoft.public.excel.programming)
  • Re: Section Properties
    ... Thanks Dave I will take into work on Monday and give it a go..... ... Regards ... Alan ... >); progn statement ...
    (comp.cad.autocad)
  • Re: Achtung, akten!
    ... Best regards, ... Michelle C., T2, no meds ... Alan, your reaction, like Loretta's is perfectly understandable. ...
    (alt.support.diabetes)
  • Re: How to aggregate WSS contents in SPS
    ... With regards to the 10% penalty, does it apply for all kinds of FrontPage ... >>> Alan ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Dont want updated fields to be printed
    ... please post all follow-ups to the newsgroup so ... > "Alan" wrote in message ... >>>No bug. ... >>>> Regards, ...
    (microsoft.public.word.printingfonts)