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 |
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.
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.
What is anonymous authentication?
Details on web.config and global.asax - just explain what are the sections will be there.
How can I create master page in asp net?
If you have to replicate a set of controls(UI) across a number of web pages, what will you do
How to call a child form method from the master page?
What are clr?cts?cls?
4 Answers e4e, HCL, Microsoft, Tata Communications,
How to disable SOAP1.2 in Web Services?
What is custom control. What is the difference between custom control and user control ?
When would you set a control's AutoPostBack property to true?
How to use a Master Database in Asp.net?