If you are using components in your application, how can you
handle exceptions raised in a component ?

Answer Posted / lucky

try {

// UR code
}
catch(Exception exMsg)
{

}
catch(ApplicationException exAppMsg)
{

}

by this u can get any type of error messages, if ur component have implemented with throwing Application or Throw Exception, those will come to u, where u r calling.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which assembly is the mvc framework defined?

644


Explain the advantage of packaging over xcopy in .net?

627


How to Create an Intranet Site Using ASP.NET MVC?

683


What is Dependency Injection in ASP.Net MVC

664


What are the sub types of ActionResult?

669






explain what is ado.net entity framework?

655


What is .net framework used for?

673


What is the significance of nonactionattribute?

663


mention what is the key advantage of using entity framework or ef?

624


What are the two ways to add constraints to a route?

631


Is it possible to share a view across multiple controllers?

618


What is the difference between model view and controller?

561


What is routeconfig.cs in mvc 4?

747


Is entity framework slow?

633


Explain what is asp.net mvc?

742