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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.