How can you handle exceptions in asp.net?



How can you handle exceptions in asp.net?..

Answer / Mohamad Waseem

In ASP.NET, you can handle exceptions by using Try-Catch blocks and optionally using a Finally block to execute code after the Try-Catch blocks. Additionally, custom error pages can be created for handling specific errors.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Explain the different types of directives in .net?

1 Answers  


Explain the differences between Server-side and Client-side code?

12 Answers   Cognizant, CTS, Siebel Systems, Visual Soft,


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,


which is faster ArraytList Or Collection ? how? hows the Hashing works internally ?

2 Answers   Emphasis,


if i have placed the button control with the OnClick event like <asp:Button ID="mybutton" runat="server" Text="Insert" onclick="mybutton_Click" /> and some other controls(buttons, textboxes) in .aspx page. When i run the page, the button displays in the page source of the browser like <input type="submit" name="mybutton" value="Insert" id="mybutton" /> here, it does not display the onclick event, then how the page calls the button click on the server side, how the server side identify which button cause the submit, and how this page moves to the server side.

1 Answers  


What is caching in asp.net?

1 Answers  


What is viewstate parameter?

1 Answers  


What are the advantages of asp.net mvc framework? : asp.net mvc

1 Answers  


Explain the difference between singleton and single call?

1 Answers  


What is the default Orientation property in a Menu control?

1 Answers   Sans Pareil IT Services,


What is a web server? What are the load limits in it?

1 Answers   Wipro,


What is the difference between dispose() and finalize()?

1 Answers  


Categories