- You can simply add following line of code in the Header section to enable auto refresh in an ASP.NET web page.
<meta http-equiv="refresh" content="15">
- Use JavaScript's SetTimeOut Function Like this:
- If you want to set the refresh time dynamically then that can be done in ASP.NET by adding server side code in the Page_Load function to set it, as shown below:
Response.AppendHeader("Refresh", "15")
No comments:
Post a Comment