ScriptManager.RegisterExtenderControl(TExtenderControl, Control) ScriptManager.RegisterExtenderControl(TExtenderControl, Control) ScriptManager.RegisterExtenderControl(TExtenderControl, Control) ScriptManager.RegisterExtenderControl(TExtenderControl, Control) Method

Definición

Registra un control extensor con la instancia de ScriptManager actual.Registers an extender control with the current ScriptManager instance.

public:
generic <typename TExtenderControl>
 where TExtenderControl : System::Web::UI::Control, System::Web::UI::IExtenderControl virtual void RegisterExtenderControl(TExtenderControl extenderControl, System::Web::UI::Control ^ targetControl);
public void RegisterExtenderControl<TExtenderControl> (TExtenderControl extenderControl, System.Web.UI.Control targetControl) where TExtenderControl : System.Web.UI.Control, System.Web.UI.IExtenderControl;
abstract member RegisterExtenderControl : 'ExtenderControl * System.Web.UI.Control -> unit (requires 'ExtenderControl :> System.Web.UI.Control and 'ExtenderControl :> System.Web.UI.IExtenderControl)
override this.RegisterExtenderControl : 'ExtenderControl * System.Web.UI.Control -> unit (requires 'ExtenderControl :> System.Web.UI.Control and 'ExtenderControl :> System.Web.UI.IExtenderControl)
Public Sub RegisterExtenderControl(Of TExtenderControl As {Control, IExtenderControl}) (extenderControl As TExtenderControl, targetControl As Control)

Parámetros de tipo

TExtenderControl

Control que implementa la interfaz IExtenderControl.A control that implements the IExtenderControl interface.

Parámetros

extenderControl

Control extensor que se va a registrar.The extender control to register.

targetControl
Control Control Control Control

Control de script que extiende el control extensor.The script control that the extender control extends.

Excepciones

extenderControl es null.extenderControl is null.

O bien-or- targetControl es null.targetControl is null.

Comentarios

Este método lo usan principalmente los desarrolladores de controles.This method is primarily for use by control developers. Llame al RegisterExtenderControl método desde un control extensor de AJAX de ASP.net personalizado durante onInit su controlador de eventos para registrar ese control en la página.Call the RegisterExtenderControl method from a custom ASP.NET Ajax extender control during its onInit event handler to register that control with the page. Un control extensor de ASP.NET AJAX debe estar registrado para participar en la representación parcial de la página.An ASP.NET Ajax extender control must be registered to participate in partial-page rendering.

El RegisterExtenderControl método agrega el control extensor especificado a una lista interna de controles extensores y los controles de script de destino que extienden.The RegisterExtenderControl method adds the specified extender control to an internal list of extender controls and the target script controls they extend. Esta lista se procesa durante el PreRender evento.This list is processed during the PreRender event.

Se aplica a