IScriptControl Interface

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Defines methods that ASP.NET server controls must implement to define ECMAScript (JavaScript) resources in AJAX-enabled applications.

Namespace:   System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public interface IScriptControl

NameDescription
System_CAPS_pubmethodGetScriptDescriptors()

Gets a collection of script descriptors that represent ECMAScript (JavaScript) client components.

System_CAPS_pubmethodGetScriptReferences()

Gets a collection of ScriptReference objects that define script resources that the control requires.

When implemented by a class, the methods of the IScriptControl interface provide references to script libraries that define client components and script descriptors that represent instances of client types. Implement this interface in custom server controls that will include script control functionality.

For more information, see Adding Client Capabilities to a Web Server Control.

.NET Framework
Available since 3.5
Return to top
Show: