response.redirect fir是非题 [英] response.redirect fir the true and false

查看:88
本文介绍了response.redirect fir是非题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用asp.net中的response.redirect(page.aspx,true或false)时,会发生什么情况?任何人都可以用简单的英语来举例说明我吗?

解决方案

我猜MSDN用非常普通的英语记录了:

http://msdn.microsoft.com/en-us/library/a8wa7sdt (v = vs.110).aspx [ http://博客. msdn.com/b/tmarq/archive/2009/06/25/correct-use-of-system-web-httpresponse-redirect.aspx [ [此处 [ public void 重定向(字符串 url, bool endResponse)



我们写出Response.Redirect("url",True/False);

url(第一个参数)
目标位置.

endResponse(第二个参数)
指示是否应终止当前页面的执行.
默认情况下,如果您不提供此布尔值,则为true.

试试这个链接
http://msdn.microsoft.com/en-us/library/a8wa7sdt (v = vs.80).aspx [ 解决方案

I guess MSDN has documented in very PLAIN english:

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

For further read, look at this blog post:

http://blogs.msdn.com/b/tmarq/archive/2009/06/25/correct-use-of-system-web-httpresponse-redirect.aspx[^]


This[^] article explains response.redirect. It''s pretty simple. It redirects you to another page.

Here[^] are the docs for the overload that takes a bool. The bool says if the current response should terminate ( I think the default is true )


public void Redirect (string url,bool endResponse)



we write Response.Redirect("url",True/False);

url(1st parameter)
The target location.

endResponse(2nd parameter)
Indicates whether execution of the current page should terminate.
By default it is true if you won''t provide this Boolean value.

try this link
http://msdn.microsoft.com/en-us/library/a8wa7sdt(v=vs.80).aspx[^]


这篇关于response.redirect fir是非题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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