我可以知道Response.Redirect(String Url)& Response.Redirect(String Url,Bool Endresponse) [英] May I Know The Difference Between The Response.Redirect(String Url) & Response.Redirect(String Url,Bool Endresponse)

查看:110
本文介绍了我可以知道Response.Redirect(String Url)& Response.Redirect(String Url,Bool Endresponse)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提前致谢

看看我的下面代码

两者有什么区别吗?



Thanks in advance
hav a look at my below code
is there any difference between two?

Response.Redirect("../Start/Welcome.aspx", false);
Response.Redirect("../Start/Welcome.aspx");

推荐答案

请访问

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

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

https://msdn.microsoft.com/en-us/library/a8wa7sdt(v = vs.110 ).aspx [ ^ ]
please visit
https://msdn.microsoft.com/en-us/library/system.web.httpresponse.redirect(v=vs.110).aspx[^]
https://msdn.microsoft.com/en-us/library/t9dwyts4(v=vs.110).aspx[^]
https://msdn.microsoft.com/en-us/library/a8wa7sdt(v=vs.110).aspx[^]


Response.Redirect(../开始/ Welcome.aspx,false);



它会将用户重定向到指定的Url,并将终止当前页面的执行。



Response.Redirect(../ Start / Welcome.aspx);

只需将用户重定向到指定的Url。
Response.Redirect("../Start/Welcome.aspx", false);

It will redirect user to specified Url and will terminate the execution of current page.

Response.Redirect("../Start/Welcome.aspx");
It will simply redirect user to specified Url.


这篇关于我可以知道Response.Redirect(String Url)& Response.Redirect(String Url,Bool Endresponse)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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