Registers a script control with the current ScriptManager instance.
Syntax
CSharp
public void RegisterScriptControl<TScriptControl> (
TScriptControl scriptControl
) where TScriptControl : Control,
VisualBasic
Public Sub RegisterScriptControl(Of TScriptControl As {Control, }) ( _
scriptControl As TScriptControl _
)ManagedCPlusPlus
public:
generic<typename TScriptControl>
where TScriptControl : Control,
virtual void RegisterScriptControl (
TScriptControl scriptControl
) sealed
JSharp
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
- TScriptControl
Parameters
- scriptControl (TScriptControl)
A Control that implements the IScriptControl interface.
Remarks
This method is primarily for use by control developers. Call the RegisterScriptControl() method from a custom Microsoft ASP.NET 2.0 AJAX Extensions script control during its onInit event handler to register that control with the page. An ASP.NET 2.0 AJAX Extensions script control must be registered to participate in partial-page rendering.
The RegisterScriptControl() method adds the specified script control to an internal list of script controls that is processed by the RegisterScripts() method during the PreRender event. At that time, each script control calls its RegisterScriptIncludes() method.
Exceptions
Assembly: System.Web.Extensions (Module: System.Web.Extensions)