Solved

Show a friendly page on ASP.net error

Posted on 2010-08-22
3
342 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Keyboard 2 34
C# bracket error 3 31
Error handling in asp.net site 5 28
Expression Evaluater 3 26
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

810 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