ASP.NET (35) SQL (25) JAVASCRIPT (24) HTML (14) STYLE SHEET (6) ASP (4) SCRIPT (1)

Search me out HERE!!

How to provide Simple Custum Error Page in ASP.Net using web.config

Below code need to be included in web.config file
Note : There is already customErrors Tag in Web.config file, you need to replace that.

<system.web>
<customErrors mode="On" defaultRedirect="error.aspx"></customErrors> 
</system.web>

Here error.aspx is page where you can mention your Error Message, which will be shown every time when exception will occur in your project.

No comments:

Post a Comment