Catching / Redirecting 404's (ASP.NET)
- by maxp
Ive noticed that when I request a page in ASP.NET (webforms) that does not exist, the 'StaticFile' handler deals with the error notification.
Id like to be a bit more helpful in these situations.
What is the correct way for me to intercept this 404, and as a result, run some code to redirect the user?
Two ways Ive thought of doing which I…