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

Definition

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)

Type Parameters

TScriptControl

A control that implements the IScriptControl interface.

Parameters

scriptControl

The script control to register.

Exceptions

Remarks

This method is primarily for use by control developers. Call the RegisterScriptControl method from a custom ASP.NET Ajax script control during its onInit event handler to register that control with the page. An ASP.NET Ajax script control must be registered to participate in partial-page rendering.

The RegisterScriptControl method adds the specified extender control to an internal list of script controls that is processed during the PreRender event.

Applies to