You can.
But should warn you. If it's an Internet application that might be bad idea.
There are many crazy robots walking out there that hits your website with
some random URLs.
You will get a lot of emails.
It's much better if you have some kind of analyzing software that analyzes
logs of your webserver. To check for 404 errors.
But nevertheless custom 404 is nice. Just do not forget to set correct
return code 404. with Response.StatusCode = 404; (i am just using my memory
here, check MSDN)
Otherwise ASP.NET will send 200 wich means evetrything is OK. Thus messing
up your IIS logs.
George.
"JB" <jb@nowhere.comwrote in message
news:Or**************@TK2MSFTNGP03.phx.gbl...
>I have found where I can change the page that is displayed for 404 in IIS.
Question is - can I use an aspx page? I want to have the page send me an
e-mail of the URL of the page they are trying to access. The main site is a
.Net 2.site.
TIA - Jeff.