Provides an abstract base class for a script control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
inherits from the WebControl class and implements the IScriptControl interface. The WebControl class is a base class for ASP.NET Web server controls. The is an abstract class, which you cannot instantiate directly. Instead, you derive a class based on this abstract class.
The base class tests the page for a ScriptManager control during the PreRender stage of the derived control. The base class also makes sure that the derived control calls methods of the ScriptManager control to register script during the Render event. This includes registering ScriptDescriptor objects for the when the Render method is called. The Render method makes sure that ScriptDescriptor objects are not rendered unless the itself is rendered. This enables a to work inside a closed WebPart control.
You can add as many descriptors and types as necessary to any class that you derive from .
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003