现在用Response.Redirect抛出“正在终止线程”的异常,网上找了一下,说是Response.Redirect会最终调用Response.End方法去终止也得执行,并将此执行切换到应用程序的事件管线中的 Application_EndRequest 事件。不执行 Response.End 后面的代码行。因此而得出的解决方法是使用Response.Redirect的重载Response.Redirect(String url, bool endResponse),将endResponse置为false以取消对 Response.End 的内部调用。这样尝试了但最后还是跑出“正在终止线程”,具体异常信息为:
   在 System.Threading.Thread.AbortInternal()
   在 System.Threading.Thread.Abort(Object stateInfo)
   在 System.Web.HttpResponse.End()
   在 System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
   在 System.Web.HttpResponse.Redirect(String url)
   在 OnlineRefundWeb.BasePage.ProcessException(String message, ILog log, Exception ex, TrackID trackId, Boolean isShowMsg)
   在 OnlineRefundWeb.BasePage.OnError(EventArgs e)不知道是什么原因?