Chapter 5. Exception Handling and Validation Controls

“No one is so brave that he is not perturbed by the unexpected.”—Julius Caesar, De Bello Gallico, 6.39

This chapter covers one of the most vital topics in Web application development: how to prevent and deal with unexpected errors. Even the best written application may fail. Whether it is due to strange user input, the failure of a remote service, or simple programmer oversight, errors and exceptions happen. Fortunately, the exception handling mechanism in ASP.NET requires forethought, not bravery, on the part of the developer. By planning and coding for exceptions, a developer should be able to face the unexpected with equanimity.

This chapter begins by covering how to plan and code for ...

Get Core Internet Application Development with ASP.NET 2.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.