Just trying to detect if it's 404 error in application. For example user tries in url and IIS shows 404 not found.
I want to detect 404 error. Redirect to custom 404 page and pass message like "cound't find" dynamically from the codebehind.
Has anyone ever done that?