404 Pages in ASP.NET MVC
Posted
by Maxim Z.
on Stack Overflow
See other posts from Stack Overflow
or by Maxim Z.
Published on 2010-04-04T05:27:27Z
Indexed on
2010/04/04
5:33 UTC
Read the original article
Hit count: 436
I'm building my first ASP.NET MVC website, and I'm trying to figure out how to implement a 404 page.
Should I create a controller called "404Controller?" If so, how do I then register this Controller with IIS so that it redirects 404s to that page? Also, in a situation where something is not found (in the database, for example) by some other Controller code, how would I redirect the request to my 404 page?
© Stack Overflow or respective owner