ScriptManager.RegisterAsyncPostBackControl(Control) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a control as a trigger for asynchronous postbacks.
public:
virtual void RegisterAsyncPostBackControl(System::Web::UI::Control ^ control);
public void RegisterAsyncPostBackControl(System.Web.UI.Control control);
abstract member RegisterAsyncPostBackControl : System.Web.UI.Control -> unit
override this.RegisterAsyncPostBackControl : System.Web.UI.Control -> unit
Public Sub RegisterAsyncPostBackControl (control As Control)
Parameters
- control
- Control
The control to register for asynchronous postbacks.
Exceptions
control is null.
The page is registered as an asynchronous postback control.
-or-
The registered control does not implement the INamingContainer, IPostBackDataHandler, or IPostBackEventHandler interfaces.
Examples
The following example shows how to call the RegisterAsyncPostBackControl method to register a Button control so that it causes an update of an UpdatePanel control's content. The