Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
C#
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 System.Web.HttpResponse.Redirect(String url) at taxi_selection.lnkbtnconfirm_Click(Object sender, EventArgs e)


i am found sol for this is Response.Redirect("home.aspx",false); but after this error agian occured .

so please suggest me what is the perfact sol. for this.

[Edit]Pre tag removed by Jibesh [/Edit]
Posted
Updated 31-Jan-13 18:54pm
v2
Comments
Sergey Alexandrovich Kryukov 1-Feb-13 0:37am    
Not enough information. A code sample may help. Please use "Improve question".
—SA

1 solution

try this

C#
Response.Redirect("home.aspx",false);
Context.ApplicationInstance.CompleteRequest();


this would avoid ThreadAbortException
 
Share this answer
 
v2
Comments
Jibesh 1-Feb-13 0:54am    
OP has already tried this.
Santhosh Kumar Jayaraman 1-Feb-13 0:57am    
try the updated answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900