Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to handle Thread abort exception in ASP.Net ?
we use Response.Redirect(url,false) instead of Response.Redirect(url) is this a good way to do or is there any other better way to handle this exception.
Posted

1 solution

Read this[^]: nice little article.

Since posting this I did some more research and came up with this as another potential solution to the issue in this[^] blog post.
 
Share this answer
 
v2
Comments
premkumar duraiswamy 28-Mar-12 1:18am    
Thanks for u r advice.
Based on the above articles, i feel using the below code will suite the best.

Response.Redirect(url, false);
Context.ApplicationInstance.CompleteRequest();
R. Giskard Reventlov 28-Mar-12 9:11am    
Yes, I agree: it is the better solution.

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