Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-29-2010, 11:34 AM   PM User | #1
rakeshashapur
New to the CF scene

 
Join Date: Sep 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rakeshashapur is an unknown quantity at this point
creating Error status code

hi
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.
ex

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

please help me to solve this.........
its urgent
rakeshashapur is offline   Reply With Quote
Old 10-29-2010, 11:05 AM   PM User | #2
SresSi
New to the CF scene

 
Join Date: Oct 2010
Location: Slovenia
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
SresSi is an unknown quantity at this point
Hi,

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.
SresSi is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:03 AM.


Advertisement
Log in to turn off these ads.