CHAPTER 21

image

Handling Errors

Even the most carefully written and tested web application will encounter errors and dealing with them is an important part of working with ASP.NET. In this chapter, we show you the different ways in which you can present information about errors to users, including customizing the default error pages and taking complete control of the error management process.

Preparing the Example Project

For this chapter we have used the Visual Studio ASP.NET Empty Web Application template to create a new project called ErrorHandling. We started by using the Visual Studio Web User Control item template to create a new control called ...

Get Pro ASP.NET 4.5 in VB, Fifth Edition now with O’Reilly online learning.

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