I am new to asp.net development.I am currently running an asp.net web application. When resolving the problem, the exception "thread is interrupted." I went through several articles to get a deep understanding of the exception.
I read this wonderful article in the Shivprasad koirala code project that explained to me about using Server.Transfer and Response.Redirect .
Then I went to this post by Thomas Marquardt which made me conclude Respose.Redirect(url,false) , but itβs better to use
Server.ClearError(); Response.Redirect(url, false); Context.ApplicationInstance.CompleteRequest();
But again this article from Imrambaloch there is a security issue with Response.Redirect(url, false) and use instead
Response.Redirect(url, false); var context = HttpContext.Current; if (context != null) { context.ApplicationInstance.CompleteRequest(); }
Now, in the end, I'm a little confused, as this is the recommended redirection method.
My question is: How can I redirect the user to troubleshooting security and performance issues?
Is Server.Transfer really that bad compared to Response.Redirect ?
niteshkodle
source share