Response.Redirect无效 [英] Response.Redirect not working

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

问题描述

我收到错误 - 感谢任何帮助。


System.Threading.ThreadAbortException:线程正在中止。 at

System.Threading.Thread.AbortInternal()at

System.Threading.Thread.Abort(Object stateInfo)at

System.Web

WebApplication1.WebForm4.DropDownList1_SelectedInd exChanged(Object sender,
Boolean endResponse)中的.HttpResponse.End() />
EventArgs e)在c:\inetpub \wwwroot \ WebApplication1 \WebForm4.aspx.vb:第150行

解决方案

< blockquote>是的,您可以忽略此异常。它是如何实现的。


-Brock

DevelopMentor
http://staff.develop.com/ballen

我收到错误 - 任何帮助赞。

System.Threading.ThreadAbortException:线程正在中止。
System.Threading.Thread.AbortInternal()在
System.Web.HttpResponse.End()处的系统.Threading.Thread.Abort(对象stateInfo)
系统
中的.Web.HttpResponse.Redirect(String url,Boolean endResponse)。
c:\inetpub \ www.root \\ WebApplication1 \WebForm4.aspx.vb:第150行




谢谢,但我得到一个空白的白页。

" Brock Allen"写道:

是的,你可以忽略这个例外。它是如何实现的。

-Brock
DevelopMentor
http://staff.develop.com/ballen

我收到错误 - 感谢任何帮助。

System.Threading.ThreadAbortException:线程正在中止。
System.Threading.Thread.AbortInternal()在
System.Web.HttpResponse.End()处的系统.Threading.Thread.Abort(对象stateInfo)
系统
中的.Web.HttpResponse.Redirect(String url,Boolean endResponse)。
c:\inetpub \ www.root \\ WebApplication1 \WebForm4.aspx.vb:第150行




你的catch块在做什么?


-Brock

DevelopMentor
http://staff.develop.com/ballen

谢谢,但我得到一个空白的白页。

Brock Allen写道:

是的,你可以忽略这个例外。它是如何实现的。

-Brock
DevelopMentor
http://staff.develop.com/ballen

我收到错误 - 感谢任何帮助。

系统。 Threading.ThreadAbortException:线程正在中止。
System.Threading.Thread.AbortInternal()在
System.Web.HttpResponse.End()处的系统.Threading.Thread.Abort(对象stateInfo)
系统
中的.Web.HttpResponse.Redirect(String url,Boolean endResponse)。
c:\inetpub \ www.root \\ WebApplication1 \WebForm4.aspx.vb:第150行




I get an error - any help appreciated.

System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url,
Boolean endResponse) at
WebApplication1.WebForm4.DropDownList1_SelectedInd exChanged(Object sender,
EventArgs e) in c:\inetpub\wwwroot\WebApplication1\WebForm4.aspx.v b:line 150

解决方案

Yeah, You can ignore this exception. It''s how it''s implemented.

-Brock
DevelopMentor
http://staff.develop.com/ballen

I get an error - any help appreciated.

System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at
System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at
WebApplication1.WebForm4.DropDownList1_SelectedInd exChanged(Object
sender, EventArgs e) in
c:\inetpub\wwwroot\WebApplication1\WebForm4.aspx.v b:line 150




Thanks but I get a blank white page.

"Brock Allen" wrote:

Yeah, You can ignore this exception. It''s how it''s implemented.

-Brock
DevelopMentor
http://staff.develop.com/ballen

I get an error - any help appreciated.

System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at
System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at
WebApplication1.WebForm4.DropDownList1_SelectedInd exChanged(Object
sender, EventArgs e) in
c:\inetpub\wwwroot\WebApplication1\WebForm4.aspx.v b:line 150




What is your catch block doing?

-Brock
DevelopMentor
http://staff.develop.com/ballen

Thanks but I get a blank white page.

"Brock Allen" wrote:

Yeah, You can ignore this exception. It''s how it''s implemented.

-Brock
DevelopMentor
http://staff.develop.com/ballen

I get an error - any help appreciated.

System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at
System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at
WebApplication1.WebForm4.DropDownList1_SelectedInd exChanged(Object
sender, EventArgs e) in
c:\inetpub\wwwroot\WebApplication1\WebForm4.aspx.v b:line 150




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

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