Re: Throwing a 404 when rewriting urls
- From: "Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Aug 2008 10:39:17 +0100
"IanW" <spondishy@xxxxxxxxxxxxx> wrote in message news:c9bc13c9-5a75-4ce3-a39b-380cd074f363@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Should I create a 404.aspx page and server.transfer to that, or is
there some other way?
HttpContext.Current.Response.StatusCode = 404;
HttpContext.Current.Response.SuppressContent = true;
HttpContext.Current.ApplicationInstance.CompleteRequest();
return;
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
.
- Follow-Ups:
- Re: Throwing a 404 when rewriting urls
- From: IanW
- Re: Throwing a 404 when rewriting urls
- References:
- Throwing a 404 when rewriting urls
- From: IanW
- Throwing a 404 when rewriting urls
- Prev by Date: Re: display an alert only once
- Next by Date: IE File Download Dialog
- Previous by thread: Throwing a 404 when rewriting urls
- Next by thread: Re: Throwing a 404 when rewriting urls
- Index(es):