1) If we handle an exception inside page-level handler
( Page_Error
), then this page-level handler
returns you back to the requested page, which is empty, since instances of control are not created.
a) What’s the logic behind runtime not rendering any of the page's controls if exception is handled by Page_Error
?
b) So the only difference between handling an exception at a page level or at an application level is that application-level handler
( Application_Error
) doesn’t return you to the page ( since at that point Page
object for the current request is already discarded )?
c) When should we choose application-level handler
instead of page-level handler
?
2) If we want the requested page to load normally ( and thus render all its controls ) even if an exception occurs, then only option is to catch this exception inside a try-catch
block?
Thank you