本文介绍了的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)

推荐答案



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的...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 01:20