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

What is a model in programming?

563


What you mean by routing in mvc?

583


What is difference between html.beginform and ajax.beginform?

609


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

568


differences between poco, model first and data first approach?

604






What are the advantages of mvc over asp.net?

570


What is .net core framework?

543


What is the difference between viewbag and viewdata in mvc?

541


How does the .net framework 3.0 relate to the .net framework 2.0?

567


Explain the 'page lifecycle' of an ASP.NET MVC?

639


What is disconnected scenario? : Entity framework

544


Can we change web.config settings from iis?

563


Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )

2501


Explain how you can send the result back in JSON format in MVC?

588


What are the options can be configured in AJAX helpers?

590