Click here to Skip to main content
16,000,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project how can I display a custom error message.

I would like to create a page and if any exception occurs then it will redirect to that page and show what error has occurred.

Please help me it's urgent.
Posted
Updated 13-Nov-11 4:03am
v2

 
Share this answer
 
v2
Comments
thatraja 12-Nov-11 11:53am    
Take a 5!
RaviRanjanKr 12-Nov-11 12:31pm    
Thanks Raja :)
You can specify it in the web.config file under customerrors tag as

HTML
<customerrors>
<error statuscode="xxx" redirect="yyy.aspx" />
</customerrors>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900