Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recommend tutorial on Exception Handling

Status
Not open for further replies.

markknowsley

Programmer
Aug 30, 2005
152
0
0
GB
Can anyone recommend a tutorial on exception handling in C# web forms? I'm especially interested in trapping SQL - related errors such as null values. I've had a trawl of the web but can't find anything that explains the concept particularly well.
 
First of all, the SQL related errors should not get in the code that is running the GUI. If you really want to learn something check out the MVC (Model-View-Controller) pattern at (or google). The errors would be "detected" in what is called the "business logic" of your application and only a comprehensive, language-dependent description of the incident would reach the GUI ( who's only business is to display information to the user, after all, and not to take decisions).

As for the exception management part, a nice article can be found here:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top