How to :: ASP.Net :: How to Refresh page automatically

Collapse

Unconfigured Ad Widget

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • David@accuwebhosting
    Junior Member
    • Apr 2012
    • 4

    How to :: ASP.Net :: How to Refresh page automatically

    Hi!

    Sometimes you need pages of your site set to refresh automatically after a certain number of intervals because new stories have been posted or when the site has been updated.Here is the code to set auto refreshing your page.

    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "close", "window.opener.location.reload(true);",true);

    To refresh your Web Page Automatically write above code in Page Load Event of your page.

    Thanks.
    Last edited by David@accuwebhosting; 04-27-2012, 08:37 AM.
  • princeofdeath
    Junior Member
    • Feb 2013
    • 11

    #2
    Re: How to :: ASP.Net :: How to Refresh page automatically

    F5 is the key used for refreshing automatically in the website.

    Comment

    Working...
    X