Provides an abstract base class for a script control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public abstract class ScriptControl : WebControl, IScriptControl
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
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.