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

How could you modify xaml content from javascript?

750


What are the advantages of passport authentication?

770


Can you explain page lifecycle in net?

742


Explain the significance of routing? : asp.net mvc

803


What is enableviewstate in asp net?

734


What is a url string?

831


Which method is used to enforce garbage collection in .net?

655


What is the viewstate in asp.net?

796


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

820


In Code-Behind class which kind of code (server or client) is found ?

807


How do we sort the data from a dataset?

781


What do you mean by View State and what is its role?

766


How to create multi language website in asp.net mvc? : Asp.Net MVC

717


What are the different types of events are occured when a client requests an ASP.NET page from IIS server?

852


What are the 3 levels at which content pages can be attached to Master Page?

810