Version

GetUpdatePanel Method

Get reference to UpdatePanel used when async mode is enabled.
Syntax
'Declaration
 
Public Function GetUpdatePanel( _
   ByVal ensure As Boolean _
) As UpdatePanel
public UpdatePanel GetUpdatePanel( 
   bool ensure
)

Parameters

ensure
If value of true is used and template was not instantiated yet or template did not contain UpdatePanel, then template is instantiated and it is wrapped into an UpdatePanel.

Return Value

Reference to UpdatePanel or null.
Remarks

Note: that method returns null if ContentUrl property is set. It also may return null if EnableAjax or EnableDynamicUpdatePanel properties are False.

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