Home > 404 Error > Asp Net Throw 404 Error

Asp Net Throw 404 Error


Just do it. [EDIT] See also my comment to the comment to the question by Trak4Net: on your error pages, you can provide a link to a top page of the The suggestion of moving the site to another company has been offered as has the suggestion of the redesign. Note: I don't just want to have the page return a status code of 404, I want it to use the ASP.Net(or my CustomErrors) 404 error page. Quoting Best Practices and RFC standards does not answer the question that was asked. get redirected here

This file provides several buttons, each of which raises a different exception. The site only contains the compiled DLLs. (Thus no way for the current admin to change it). Better try again. —SA MrComputerWhiz 31-Oct-13 22:36pm The question being asked was never about security... Why did companions have such high social standing? http://stackoverflow.com/questions/4974562/possible-to-throw-a-404-error-within-an-asp-net-page

Asp Net Http 404

return new httpStatusCodeResult(404); share|improve this answer answered Apr 15 '12 at 15:52 Arjan Einbu 9,8893654 This sends a 404 Http result to the visitor, which makes the browser show C#VB Copy <%@ Page Language="C#" %>