Answer Posted / poornima p
In ASP.NET exception handling is achieved using the Try ?
Catch ? Finally block. All the three are ASP.NET keywords
and are used do exception handling. The try block encloses
the statements that might throw an exception whereas catch
block handles any exception if one exists. The finally
block can be used for doing any clean up process. Any
general ASP.NET exception forces the application to
terminate without allowing the code to continue executing,
resulting in an error page.
<Script runat=server>
Public Page_Load(sender As Object, e As EventArgs)
{
try
{
// Statements that are can cause exception
}
catch(Type x)
{
// Statements to handle exception
}
finally
{
// Statement to clean up
}
}
</Script>
Custorm Errors:
The default settings that is available in machine.config is
as follows
<customErrors mode="RemoteOnly"/>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites
In asp.net, how can you validate drop down box?
How will you load dynamic assembly?
Explain the different types of assemblies?
What are the types of caching in asp.net?
Securitywise What are the Enhancements in 2.0?
When we use cookie less session? Explain its working?
How to implement globalization and localization in the use interface in .net.
how to retrieve property settings from xml .config file.
How will you do Redo and Undo in a TextControl?
How you can access the properties and controls of master pages from content pages?
How is mvc different from asp.net? : Asp.Net MVC
How to display validation messages in one control?
Explain global assembly cache.
What is css in asp.net?