How do you handle unhandled exceptions in ASP.NET?.

Answers were Sorted based on User's Feedback



How do you handle unhandled exceptions in ASP.NET?...

Answer / madhu

By giving
Try
{
any thing u want to give without exception
}

catch
{
here exception takes
}

Is This Answer Correct ?    1 Yes 0 No

How do you handle unhandled exceptions in ASP.NET?...

Answer / s

try
{
here u have to write ur code
}
catch (Exception ex)
{
here if u get any error it was handled by Exception ex
}

Is This Answer Correct ?    1 Yes 0 No

How do you handle unhandled exceptions in ASP.NET?...

Answer / raviraj

usually we handle exceptions in an appication using try ...
catch block.....If this structured exception too failed (as
you said the case of unhandled exception)Then we can define
user defined execeptions by creating a class which inherits
the application exception.The exception that contained in
the method of the class will automatically handled by the
throw new exception statement ,which contains the error
message.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is view state management in asp net?

0 Answers  


How many types is controls is there in Asp.Net?If it means what are types of custom controls?Explain about user controls,Web server controls,Hrml server controls?

1 Answers   Cap Gemini, TCS,


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

0 Answers  


What ?ll u do in early and late binding ?

1 Answers   DELL,


What are the various types of authentication?

1 Answers  






How you can return View from ASP.NET Web API method?

0 Answers  


What is web api and why to use it?

0 Answers  


How to retrieve data row by row from a DataTable? Thanks In advance PriyaPP

3 Answers  


Who can consume WebAPI?

0 Answers  


How do you associate two or more validators with a single input control? What do you need to do to prevent space from being reserved for a validation control thatpasses its validation test?

1 Answers  


How to add DateTime Control in normal DataGrid Server Control?

0 Answers  


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

0 Answers   Accenture,


Categories