的Response.Redirect(“Default.asp的... [英] Response.Redirect('Default.asp...
本文介绍了的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 "A" an then you issue a redirect
Response.Redirect('Default.aspx",True)
The client will be sent the redirect for the new page and Page "A" 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('Default.aspx",False)
Then the client will be sent the redirect for the new page, but Page "A" will be allowed to continue processing. Perhaps page "A" has cleanup work to do or something. The client will never see the results from page "A" as they were redirected.</pre>
这篇关于的Response.Redirect(“Default.asp的...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文