Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

IScriptControl Interface

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

Syntax

CSharp

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public interface IScriptControl

VisualBasic

<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Interface IScriptControl

ManagedCPlusPlus

[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public interface class IScriptControl

JSharp

/** @attribute AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal) */
/** @attribute AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal) */
public interface IScriptControl

Members

IconMemberDescription
GetScriptDescriptors()Gets a collection of script descriptors that represent ECMAScript (JavaScript) client components.
GetScriptReferences()Gets a collection of ScriptReference objects that define script resources that the control requires.

Remarks

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 by Using ASP.NET AJAX Extensions.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)