asp.net mvc 2 - How to correctly and easily handle 404 errors on my MVC2 application? -


same question:

I'm partly the question above Except that it is very important rather than being MVC2-ey. Perhaps a 'more conference on configuration' approach is more straightforward with MVC2?

When the user types in a non-existent approach, how can I easily set up my MVC2 application to show a special 404 page?

Thank you.

In Web.config

  & lt; CustomErrors mode = "on" defaultRedirect = "~ / error-page / index" & gt; & Lt; Error status code = "404" redirect = "~ / error-page / notfound" /> & Lt; Error status code = "403" redirect = "~ / error-page / badderity" /> & Lt; / CustomErrors & gt;  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -