Solved

Show a friendly page on ASP.net error

Posted on 2010-08-22
3
341 Views
Last Modified: 2012-05-10
I have a website using a typed DataSet and each page is validateRequest = true;
I read that DataSet has a inner system to prevent SQL Injection.

In textboxes in my website, I only have required field validators.

If the user types a non-valid string, the asp.net raises a exception with the default asp.net error page.

What I actually want to do is make up the possible errors, redirecting the user to a friendly page. I'm already redirecting in error 404, but if any other exception occurs the default error page appears.

Thanks in advance!
0
Comment
Question by:calypsoworld
3 Comments
 
LVL 3

Accepted Solution

by:
grantunwin earned 250 total points
ID: 33496527
You need to modify the web.config file on yoiur server. See this tutorial:

http://www.15seconds.com/issue/030102.htm
0
 
LVL 14

Assisted Solution

by:Dhanasekaran Sengodan
Dhanasekaran Sengodan earned 250 total points
ID: 33500427
0
 

Author Closing Comment

by:calypsoworld
ID: 33619480
Thank you
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now