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

How ViewstateMac works?

0 Answers   CGI,


How do you construct HtmlResponseMessage?

1 Answers  


What’s the difference between Response.Write() andResponse.Output.Write()?

1 Answers  


Is it possible to change the index of primary key on table?

0 Answers  


How to implement caching?

2 Answers   Infosys, Microsoft,


i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?

0 Answers   Wipro,


What are the different types of Caching techniques in ASP.NET?

0 Answers  


What is the difference between Server.Transfer and Response.Redirect?

5 Answers  


Where is session cookies stored?

0 Answers  


What is a session government?

0 Answers  


How would you turn off cookies on one page of your website?

0 Answers  


What are the types of assemblies and where can u store them and how ?

1 Answers   Patni,


Categories