편집

다음을 통해 공유


ScriptManager.RegisterScriptDescriptors Method

Definition

Instructs the ScriptManager control to call back to the ScriptControl or ExtenderControl classes in order to return scripts that support the client object that represents a client control, component, or behavior.

Overloads

RegisterScriptDescriptors(IExtenderControl)

Calls back to an ExtenderControl class to return instance scripts that must be rendered to support the client object that represents a client control, component, or behavior.

RegisterScriptDescriptors(IScriptControl)

Calls a ScriptControl class to return instance scripts that must be rendered to support the client object that represents a client control, component, or behavior.

RegisterScriptDescriptors(IExtenderControl)

Calls back to an ExtenderControl class to return instance scripts that must be rendered to support the client object that represents a client control, component, or behavior.

public:
 virtual void RegisterScriptDescriptors(System::Web::UI::IExtenderControl ^ extenderControl);
public void RegisterScriptDescriptors (System.Web.UI.IExtenderControl extenderControl);
abstract member RegisterScriptDescriptors : System.Web.UI.IExtenderControl -> unit
override this.RegisterScriptDescriptors : System.Web.UI.IExtenderControl -> unit
Public Sub RegisterScriptDescriptors (extenderControl As IExtenderControl)

Parameters

extenderControl
IExtenderControl

The extender control for which script descriptors will be registered.

Remarks

The ExtenderControl class calls the RegisterScriptDescriptors method in its Render method.

Notes to Inheritors

If you derive from the ExtenderControl class and override the Render(HtmlTextWriter) method, but you do not call the base class method, you must call the RegisterScriptDescriptors(IExtenderControl) method. This enables the ScriptManager control to render the instance scripts that support the client object that the control represents.

See also

Applies to

RegisterScriptDescriptors(IScriptControl)

Calls a ScriptControl class to return instance scripts that must be rendered to support the client object that represents a client control, component, or behavior.

public:
 virtual void RegisterScriptDescriptors(System::Web::UI::IScriptControl ^ scriptControl);
public void RegisterScriptDescriptors (System.Web.UI.IScriptControl scriptControl);
abstract member RegisterScriptDescriptors : System.Web.UI.IScriptControl -> unit
override this.RegisterScriptDescriptors : System.Web.UI.IScriptControl -> unit
Public Sub RegisterScriptDescriptors (scriptControl As IScriptControl)

Parameters

scriptControl
IScriptControl

The script control for which script descriptors will be registered.

Remarks

The ScriptControl class calls the RegisterScriptDescriptors method during its Render event.

Notes to Inheritors

If you derive from the ScriptControl class and override the Render(HtmlTextWriter) method, but you do not call the base class method, you must call the RegisterScriptDescriptors(IScriptControl) method. This enables the ScriptManager control to render the instance scripts that support the client object that the control represents.

See also

Applies to