c#中刷新按钮的代码 [英] code for refresh button in c#

查看:369
本文介绍了c#中刷新按钮的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个代码来刷新c#4.0中的网页

任何人plz帮助我

i need a code for refresh the web page in c#4.0
anyone plz help me

推荐答案

你可以重定向同一页面使用以下代码:

You can redirect on the same page using following code :
Response.Redirect(Request.RawUrl);





如果你想在客户端而不是服务器上做,



If you want to do on clientside and not the server,

document.location.reload()


试试这个..

Try this..
Page.Response.Redirect(Page.Request.Url.ToString(), true);


这篇关于c#中刷新按钮的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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