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 |
What is view state management in asp net?
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?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What ?ll u do in early and late binding ?
What are the various types of authentication?
How you can return View from ASP.NET Web API method?
What is web api and why to use it?
How to retrieve data row by row from a DataTable? Thanks In advance PriyaPP
Who can consume WebAPI?
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?
How to add DateTime Control in normal DataGrid Server Control?
If you are using components in your application, how can you handle exceptions raised in a component?