Skip to main content

Refresh the aspx page automatically

Automatic web page refresh can be implemented in an ASP.NET (.aspx) web-page by adding some HTML code in the header section.

<meta http-equiv="refresh" content="15">

Set the time according to your requirement in content="time in sec".

For adding Aspx server side the Page_Load function to set it, as shown below: 

Response.AppendHeader("Refresh", "15")

Comments