Try to always use the second parameter endResponse for the method:
HTTPResponse.Redirect(newURL, FALSE)
endResponse when set to true results in throwing the exception ThreadAbortException. Typically, exceptions propagations are expensive with respect to processing and results in performance degradation. Alternatively, it is recommended whenever possible to set endResponse to false and provide a graceful logical end to your thread following the redirection procedure.
Thanks goes to Mike Volodarsky's blog.
For details: MSDN
HTTPResponse.Redirect(newURL, FALSE)
endResponse when set to true results in throwing the exception ThreadAbortException. Typically, exceptions propagations are expensive with respect to processing and results in performance degradation. Alternatively, it is recommended whenever possible to set endResponse to false and provide a graceful logical end to your thread following the redirection procedure.
Thanks goes to Mike Volodarsky's blog.
For details: MSDN
ReplyDeleteNice post, Thanks for sharing Get more update at
.Net Online Training Bangalore