Registers a control for postback. This method is used for postback controls inside an UpdatePanel control that would otherwise perform asynchronous postbacks.
Syntax
CSharp
public void RegisterPostBackControl (
Control control
)
VisualBasic
Public Sub RegisterPostBackControl ( _
control As Control _
)
ManagedCPlusPlus
public:
virtual void RegisterPostBackControl (
Control^ control
) sealed
JSharp
public final void RegisterPostBackControl (
Control control
)
Parameters
- control (Control)
The Control to register for postback.
Remarks
Use the RegisterPostBackControl(Control) method to register postback controls inside of an UpdatePanel control to update an entire page instead of updating only the UpdatePanel control's content. Using this method to register a postback control outside of an UpdatePanel control has no affect because these controls do not perform asynchronous postbacks by default.
If you want to register a control inside of an UpdatePanel control as a postback control, use the designer's UpdatePanelTrigger Collection Editor dialog box or add the trigger declaratively by using the <Triggers> element of the UpdatePanel control.
Assembly: System.Web.Extensions (Module: System.Web.Extensions)