How do you handle unhandled exceptions in ASP.NET?.
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How ViewstateMac works?
How do you construct HtmlResponseMessage?
What’s the difference between Response.Write() andResponse.Output.Write()?
Is it possible to change the index of primary key on table?
How to implement caching?
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?
What are the different types of Caching techniques in ASP.NET?
What is the difference between Server.Transfer and Response.Redirect?
Where is session cookies stored?
What is a session government?
How would you turn off cookies on one page of your website?
What are the types of assemblies and where can u store them and how ?