自动刷新我的aspx页面的时间间隔 [英] auto refresh my aspx page with time interval
本文介绍了自动刷新我的aspx页面的时间间隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在这里,我完成了该方案,但是下面的代码在ie10兼容性视图中不起作用.
代码:-
hi to all,
Here i complete that scenario but below code not working in ie10 compatibility view.
code:-
<html>
<head>
<meta http-equiv="refresh" content="5;URL=dashboard.aspx" />
</head>
</html>
.cs:-
Response.AppendHeader("Refresh",5 +; URL = Dashboard.aspx");
如何在IE浏览器中工作,然后我需要使用脚本或任何方式的另一种方法.请对此提供帮助.
.cs:-
Response.AppendHeader("Refresh", 5 + "; URL=Dashboard.aspx");
how to work in ie browser then i need another method using script or anythink. Kindly help for this.
推荐答案
This would refresh page after every 2 seconds.
Or if you want to do it in code behind do it like this:
Response.AppendHeader("Refresh", "2");
这篇关于自动刷新我的aspx页面的时间间隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文