Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Show a friendly page on ASP.net error

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

765 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