954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Handling BLL- and DAL-Level Exceptions in an ASP.NET Page

Hi Guys,

I want to try and remove a Server Error in '/Program' Application.

When i try to delete a record which has related sub record, it cant delete obviously because of the relationship between the entities, however the average user does not no this, and they dont need to see this error i would like to display the error on the program in a friendly manner can anyone help please?

The common error i get is:

The DELETE statement conflicted with the REFERENCE constraint.....
but there are many different errors so is there ny way you can pick out each one and give a unique friendly error message to them ? if so how should i go around doing this? thanks :)

YMCMb
Light Poster
25 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: