This project is read-only.
1
Vote

Error occurred when redirecting to a new page via the SelectedIndexChanged event

description

I received this error when simply redirecting to a new page in the SelectedIndexChanged event. Do I need to add some code to abort the thread correctly?
 
Exception: 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, Boolean permanent)
at System.Web.HttpResponse.Redirect(String url)
at Financials_Vendors_Vendors.gvVendor_SelectedIndexChanged(Object sender, EventArgs e) in
 
Message: Thread was being aborted.
 
Error Source: mscorlib
 
Source Method: Void AbortInternal()
 
Stack Trace: 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, Boolean permanent)
at System.Web.HttpResponse.Redirect(String url)
at Financials_Vendors_Vendors.gvVendor_SelectedIndexChanged(Object sender, EventArgs e)

comments