何时使用Page.Response.Redirect(Page.Request.Url.ToString(),true); [英] When to use Page.Response.Redirect(Page.Request.Url.ToString(), true);

查看:233
本文介绍了何时使用Page.Response.Redirect(Page.Request.Url.ToString(),true);的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

此代码用于刷新当前页面。
This code use for refresh the current page.


你使用Page.Response.Redirect(Page.Request.Url.ToString(),true);当你想要将用户重定向到当前请求的URL并获得ThreadAbortException时。



有关详细信息,请参阅此MSDN文章:



https://msdn.microsoft。 com / en-us / library / a8wa7sdt(v = vs.110).aspx [ ^ ]
You use Page.Response.Redirect(Page.Request.Url.ToString(), true); when you want the user to be redirected to URL of the current request and get a ThreadAbortException.

For more details refer this MSDN article:

https://msdn.microsoft.com/en-us/library/a8wa7sdt(v=vs.110).aspx[^]


这篇关于何时使用Page.Response.Redirect(Page.Request.Url.ToString(),true);的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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