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

Hi, I am a fresher. i have a problem related to DataGrid . i have a data grid and i have to place a dropdown in the datagrid.and i have to retrieve the values from the database (sqlserver).please tell me any idea about the code.

1 Answers   Lambent,


Hi, I am working in a small software company in asp.net platform. I need to know how and what are all the task in asp.net will be assigned for the developers in mnc companies. Thanks in advance.

1 Answers  


What is anonymous authentication?

0 Answers  


Details on web.config and global.asax - just explain what are the sections will be there.

1 Answers   Syntel,


How can I create master page in asp net?

0 Answers  


If you have to replicate a set of controls(UI) across a number of web pages, what will you do

1 Answers  


How to call a child form method from the master page?

1 Answers  


What are clr?cts?cls?

4 Answers   e4e, HCL, Microsoft, Tata Communications,


How to disable SOAP1.2 in Web Services?

1 Answers  


What is custom control. What is the difference between custom control and user control ?

1 Answers   Microsoft, Synergy,


When would you set a control's AutoPostBack property to true?

1 Answers  


How to use a Master Database in Asp.net?

0 Answers   MCN Solutions,


Categories