Whenever any error occurs in ASP.NET it will give default screen which is quite messy and dirty. So how we can show error messages of our own. I found a great article that explained the way to display our message.here is the link:
http://blogs.msdn.com/coding4fun/archive/2006/12/28/1378666.aspx