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 are the action filters available in asp.net mvc
What is Hidden Fields in Asp.Net
What is the difference between a candidate key and primary key?
How to find the client browser type ?
4 Answers AQA, Cognizant, Satyam,
What are the different types of sessions in asp.net? Name them?
What is latest version of asp.net mvc? : Asp.Net MVC
Explain a program using razor view engine to create a simple application? : asp.net mvc
What is CSS? What is the advantage os using CSS in ASP.NET Web Applications?
What?s the difference between Response.Write() andResponse.Output.Write()?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
What are the advantages and disadvantages of viewstate ?
What is validationsummary server control? where it is used ?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)