ScriptManager.RegisterScriptControl(TScriptControl) ScriptManager.RegisterScriptControl(TScriptControl) ScriptManager.RegisterScriptControl(TScriptControl) ScriptManager.RegisterScriptControl(TScriptControl) Method

Definición

Registra un control de script con la instancia de ScriptManager actual.Registers a script control with the current ScriptManager instance.

public:
generic <typename TScriptControl>
 where TScriptControl : System::Web::UI::Control, System::Web::UI::IScriptControl virtual void RegisterScriptControl(TScriptControl scriptControl);
public void RegisterScriptControl<TScriptControl> (TScriptControl scriptControl) where TScriptControl : System.Web.UI.Control, System.Web.UI.IScriptControl;
abstract member RegisterScriptControl : 'ScriptControl -> unit (requires 'ScriptControl :> System.Web.UI.Control and 'ScriptControl :> System.Web.UI.IScriptControl)
override this.RegisterScriptControl : 'ScriptControl -> unit (requires 'ScriptControl :> System.Web.UI.Control and 'ScriptControl :> System.Web.UI.IScriptControl)
Public Sub RegisterScriptControl(Of TScriptControl As {Control, IScriptControl}) (scriptControl As TScriptControl)

Parámetros de tipo

TScriptControl

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

Parámetros

scriptControl

Control de script que se va a registrar.The script control to register.

Excepciones

Comentarios

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

El RegisterScriptControl método agrega el control extensor especificado a una lista interna de controles de script que se procesan durante PreRender el evento.The RegisterScriptControl method adds the specified extender control to an internal list of script controls that is processed during the PreRender event.

Se aplica a