Menus

Friday, December 21, 2012

How to Refresh page automatically in ASP.Net

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.

No comments:

Post a Comment