How can I handle manually the 404 error in C#?
I want to check some conditions in 404 error and then redirect it to the proper page.
I know the web.config settings, but you can’t check conditions in web.config file, can you?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found a solution myself: