For a site 404 error page is also non-prudential important, 404 pages if done well can increase the user experience, but also to enhance the user's friendliness of the site. Here's a list of some of the most insured 404 pages in ASP. Recommended Learning C # Basics tutorial .
The code is as follows:
Response.statuscode = 404; Response.suppresscontent = true; Context.ApplicationInstance.CompleteRequest ();
1 . Return only the 404 Status Code, and the custom 404 page is configured in IIS error pages.
2. Set Response.suppresscontent to true in case the response content is sent to the client. In our actual tests, we found that if you do not set response.suppresscontent, you will see some of the response content when accessed in localhost.
3, previously like to use the overbearing Response.End () force abort the current thread, and with Context.ApplicationInstance.CompleteRequest () more moderate, will not throw an exception.
For more information on programming language Tutorials , please visit e-mentor Web.
The most insured page returns 404 method