如何在ASP.NET中刷新页面? (让它通过代码重新加载) [英] How to refresh the page in ASP.NET? (Let it reload itself by code)

查看:114
本文介绍了如何在ASP.NET中刷新页面? (让它通过代码重新加载)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何在ASP中刷新页面。净? (让它通过服务器端代码重新加载)
,请回答任何问题?


abbijohn

How to refresh the page in ASP.NET? (Let it reload itself by server side code),Please answer any one?


abbijohn

推荐答案

当你想要重新加载?我的意思是你可以在你的问题上分享更多的细节。

When you want to ReLoad ? I mean can you share some more details on your question.

一个选项是你可以从C#重定向同一页面,如下所示;

One option is You can Redirect the same page from C# as below ;

Response.Redirect(Request.RawURL) ;

人们更喜欢在客户端经过一段时间后刷新asp.net页面,如果你是这样的话可以按如下方式配置你的asp.net页面。

People prefer to refresh the asp.net page after some interval of time at client side, if that is your case you can configure your asp.net page as below.

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


希望这会对你有所帮助。对于Asp.net问题,您可以将您的问题发布到
http://forums.asp.net/
  for expert's回答。

Hope this would help you. For Asp.net question you can post your question to http://forums.asp.net/ for expert's answer.


这篇关于如何在ASP.NET中刷新页面? (让它通过代码重新加载)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆