Export (0) Print
Expand All

ScriptManager.RegisterPostBackControl Method

Registers a control as a trigger for a postback. This method is used to configure postback controls inside an UpdatePanel control that would otherwise perform asynchronous postbacks.

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

'Declaration
Public Sub RegisterPostBackControl ( _
	control As Control _
)

Parameters

control
Type: System.Web.UI.Control

The control to register for postback.

Use the RegisterPostBackControl method to register postback controls inside an UpdatePanel control as triggers. Controls that are registered by using this method update a whole page instead of updating only the UpdatePanel control's content. Registering a postback control with this method outside an UpdatePanel control has no affect because by default these controls do not perform asynchronous postbacks.

You can add the trigger declaratively by using the Triggers element of the UpdatePanel control. In Visual Studio, use the designer's UpdatePanelTrigger Collection Editor dialog box.

.NET Framework

Supported in: 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft