Reputation: 3279
I am building a Web Application using ASP.NET C#.
The idea is to display the contents of an error table and autorefresh every 5 minutes.
I have tried this:
Response.AppendHeader("Refresh", "3 ;URL=SYS_IFCError.aspx");
and this:
Response.AppendHeader("Refresh", "3");
Has this command been phased out or something?
Upvotes: 2
Views: 2259
Reputation: 16973
If the refresh header is not working the way you expected, I am suggesting you to try one of 2 other approaches.
Refreshing using HTML meta tag:
<meta http-equiv="refresh" content="3" />
Refreshing using JavaScript:
setTimeout(function () { location.reload(1); }, 3000);
Upvotes: 0
Reputation: 29668
Don't you mean a META refresh?
<meta http-equiv="refresh" content="300; url=http://example.com/">
Which is a HTML tag, it's not a HTTP header like what you're doing now.
Upvotes: 1