A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Jagjit Saini ,
Your parameter's index have wrong.You need do like this:
Response.Redirect(string.Format("~/Error/Index/?message={0}", "", HttpUtility.UrlEncode(exception.Message)));
By the way,there are some tradeoffs with your approach. Be very very careful with looping in this kind of error handling.This can be an issue (performance) for heavily used systems.
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.