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

Disable Mouse right click on web page in asp.net?

0 Answers   HCL,


What is clickid?

0 Answers  


Why viewstate is used in asp.net?

0 Answers  


If we write return statement in finally block will it works fine or throws any error?

1 Answers   Patni,


What are sharepoint pages?

0 Answers  


Difference between ASP & ASP.NET Session State

1 Answers   Cognizant, Wipro,


What are the differences between code behind and code inline?

0 Answers  


can sn.exe can be used before gacutil.exe

2 Answers   Accenture,


How ASP and ASP.NET page works.

3 Answers  


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

3 Answers  


How do you deploy your asp.net application?

0 Answers  


What is the viewstate in asp.net?

0 Answers  


Categories