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 |
Why and where this web.config file is used?
whats the best method to cal id in javascript
What are the authentication types in asp.net?
What is SilverLight in ASP.NET ?
What is the result when the Web Form containing the following line is complied and executed? <asp:Button id=?thebutton? onClick=?theEvent? /> a) The button control is created; theEvent is the click event handler. b) Compiler error; the control must be set to runat=?server?. c) Compiler error; onClick is not a valid attribute. d) Runtime Exception; the control must be set to runat=?server?.
Caching techniques in .NET ?
What are the intrinsic objects present in ASP.NET
How do you deploy your asp.net application?
Caching techniques in .NET?
User contro having 4 text boxes given validation controls. i want to execute validations after the button click event how it is?
What are sessions and cookies?
I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?