的Response.Redirect(“Default.asp的... [英] Response.Redirect('Default.asp...

查看:126
本文介绍了的Response.Redirect(“Default.asp的...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Can any one practically guide me as what is the difference of Response.Redirect - True / False, I mean

Response.Redirect('Default.aspx",True)     V/s    Response.Redirect('Default.aspx",False)

推荐答案

将客户端重定向到新URL。指定新URL以及是否应终止当前页面的执行。欲了解更多信息,请通过Google搜索。
Redirects a client to a new URL.Specifies the new URL and whether execution of the current page should terminate. for more info please search by Google.


HttpResponse.Redirect方法 [ ^ ]


Response.Redirect(Default.aspx,True)     V/s    Response.Redirect(Default.aspx,False)></b>



If you are processing page &quot;A&quot; an then you issue a redirect

    Response.Redirect(&#39;Default.aspx&quot;,True)

The client will be sent the redirect for the new page and Page &quot;A&quot; will immediately stop processing as a thread abort will occur.  This is the default behavior of a redirect.

If you issued the redirect as

    Response.Redirect(&#39;Default.aspx&quot;,False)

Then the client will be sent the redirect for the new page, but Page &quot;A&quot; will be allowed to continue processing.  Perhaps page &quot;A&quot; has cleanup work to do or something.  The client will never see the results from page &quot;A&quot; as they were redirected.</pre>


这篇关于的Response.Redirect(“Default.asp的...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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