Академический Документы
Профессиональный Документы
Культура Документы
Handling
Introduction
• Two ways:
1) Using try – catch – Refer C# coding
2) Page _Error
• Unhandled Exceptions can be handled by Page_Error function .
• We can get the error by using Server.GetLastError()
• It can be cleared by using Server.ClearError();
• Application errors can be handled by Web.Config file.
• We can create global error handler in Global.asax file.
• Enable the custom errors in the config file and redirect the users to a
particular page.