Version

AddErrorHandler Method

Add error handler to current CallBackManager. That method has effects only within asynchronous postbacks triggered by CallBackManager such as WebAsyncRefreshPanel, or UltraWebTab.
Syntax
'Declaration
 
Public Shared Function AddErrorHandler( _
   ByVal page As Page, _
   ByVal handler As CallBackErrorHandler _
) As Boolean
public static bool AddErrorHandler( 
   Page page,
   CallBackErrorHandler handler
)

Parameters

page
Reference to page where CallBackManager is located.
handler
Reference to handler. If UnhandledExceptionEventArgs.IsTerminating is true, then full postback will occur.

Return Value

False: failure. If happens if postback was not triggered by CallBackManager.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also