View Full Version : creating Error status code

09-29-2010, 11:34 AM
I want to create my own error status code.. so that i can use that code in web.config file to open a custom error page in the case of error generation in my application.

<customErrors mode="On" defaultRedirect="Default2.aspx">
<error statusCode="20(my status code for error)" redirect="Default2.aspx" />

please help me to solve this.........
its urgent

10-29-2010, 11:05 AM

way not use try catch (c#)? Into catch you can Redirect to your custom error page and also send custom message to show it to client.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum