How can u handle Exceptions in Asp.Net?

Answer Posted / senthil kumar

try
{
//set of code
}
catch(Exception1 e)
{
//error display
}
catch(Exception2 e)
{
//error display
}
finally
{
//compulsory execution will be done here
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of view state?

749


What are the advantages and disadvantages of Using Cookies?

710


What is different in .net 1.1 and .net 2.0?

778


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

881


What is ascx?

739


How would you enable impersonation in the web.config file?

734


How is it possible for .NET to support many languages?

497


Explain the difference between the web config and machine config.

816


Is it true that a Web service must be written in .NET or not?

819


is gateway for sms continue connected for sending sms.how?

2049


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

749


what is loosely coupled solution? How it can be used?

779


Why do you use the app_code folder in asp.net?

772


What is a server cookie?

721


What is meant by web application?

723