如何强制使页面刷新呢??

acai 2003-10-24 12:05:11
如何强制使页面刷新呢??我的意思是不是通过button或者submit类的控件触发的页面刷新,有没有什么方法调用可以直接刷新本页面??
...全文
159 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
acai 2003-10-24
  • 打赏
  • 举报
回复
to saucer(思归) :
不用延时,如何做??多谢了!
saucer 2003-10-24
  • 打赏
  • 举报
回复
Response.AppendHeader("refresh","5"); //5 seconds
Nicholasqpl 2003-10-24
  • 打赏
  • 举报
回复
<title>....</title>下面加:
<meta http-equiv="Refresh" content="30;URL=meige3miaoAdd.aspx">
percyboy 2003-10-24
  • 打赏
  • 举报
回复
server 端触发?何时触发呢?
percyboy 2003-10-24
  • 打赏
  • 举报
回复
客户端脚本 javascript
acai 2003-10-24
  • 打赏
  • 举报
回复
我想在server段触发,不在js里写,该如何??
saucer 2003-10-24
  • 打赏
  • 举报
回复
call javascript:

<script language=javascript>
window.location.reload(true);
//or
window.location.href = window.location.href + "?t=" + Math.random();
</script>
ddangerous169 2003-10-24
  • 打赏
  • 举报
回复
lf
acai 2003-10-24
  • 打赏
  • 举报
回复
我在webform1里用了iframe,里面放了webform2,如何在webform2里点击后使webform1也刷新??
windofcity 2003-10-24
  • 打赏
  • 举报
回复
<meta http-equiv="Refresh" content="20;URL=index.aspx"> //20妙
LineCorner 2003-10-24
  • 打赏
  • 举报
回复
用:
window.location.Reload();
方法很多,你知己选!
Englishgenius 2003-10-24
  • 打赏
  • 举报
回复
Response.Write("<script>window.location.Reload();</script>");
牛牛Alex 2003-10-24
  • 打赏
  • 举报
回复
Response.Write("<script>location.href=location.href;</script>");
rgbcn 2003-10-24
  • 打赏
  • 举报
回复
you should add the click handler to the button directly using its Attributes collection: Button1.Attributes.Add("onclick",
"parent.frames['leftNav'].location.href='page2.aspx';") This adds an additional click handler to
the button that will run before the page gets submitted.
rgbcn 2003-10-24
  • 打赏
  • 举报
回复
放在page_load
Button1.Attributes.Add("onclick", "window.location.href =index.html")
Nicholasqpl 2003-10-24
  • 打赏
  • 举报
回复
不是通过button或者submit类的控件触发的页面刷新,也不用延时?那你怎么触发刷新啊?
up





































































62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧