Compartilhar via


ScriptLink members

Provides properties and methods for registering resources, such as scripts, on a page so that they can be requested when the page is rendered.

The ScriptLink type exposes the following members.

Constructors

  Name Description
Public method ScriptLink Initializes a new instance of the ScriptLink class.

Top

Properties

  Name Description
Protected property Adapter (Inherited from Control.)
Public property AppRelativeTemplateSourceDirectory (Inherited from Control.)
Public property BindingContainer (Inherited from Control.)
Protected property ChildControlsCreated (Inherited from Control.)
Public property ClientID (Inherited from Control.)
Public property ClientIDMode (Inherited from Control.)
Protected property ClientIDSeparator (Inherited from Control.)
Protected property Context (Inherited from Control.)
Public property Controls (Inherited from Control.)
Public property DataItemContainer (Inherited from Control.)
Public property DataKeysContainer (Inherited from Control.)
Public property Defer Gets or sets whether to defer downloading the core.js file, that is, to fetch core.js asynchronously.
Protected property DesignMode (Inherited from Control.)
Public property EnableCustomActions
Public propertyStatic member EnableScriptGlobalization Gets or sets a value that indicates whether the ScriptLink control renders script that supports parsing and formatting of culture-specific information.
Public property EnableTheming (Inherited from Control.)
Public property EnableViewState (Inherited from Control.)
Protected property Events (Inherited from Control.)
Protected property HasChildViewState (Inherited from Control.)
Public property ID (Inherited from Control.)
Protected property IdSeparator (Inherited from Control.)
Public property InDesign (Inherited from SPControl.)
Protected property IsChildControlStateCleared (Inherited from Control.)
Protected property IsTrackingViewState (Inherited from Control.)
Protected property IsViewStateEnabled (Inherited from Control.)
Public property Language Gets or sets the scripting language.
Public property LoadAfterUI
Protected property LoadViewStateByID (Inherited from Control.)
Public property Localizable Indicates whether a page can be localized.
Public property ManageAxdScripts Indicates whether scripts registered with the ASP.net ScriptManager should be rendered with other scripts registered in the ScriptLink
Public property Name Specifies the name of the script file.
Public property NamingContainer (Inherited from Control.)
Public property OnDemand
Public property Page (Inherited from Control.)
Public property PageUri Gets or sets the Uniform Resource Identifier (URI) of the page that contains the control. (Inherited from SPControl.)
Public property Parent (Inherited from Control.)
Protected property RegisterAs (Inherited from SPControl.)
Public property RenderingCompatibility (Inherited from Control.)
Public property Site (Inherited from Control.)
Public property SkinID (Inherited from Control.)
Public property TemplateControl (Inherited from Control.)
Public property TemplateSourceDirectory (Inherited from Control.)
Public property UIVersion The UIVersion that this script is compatible with. Can be a number, a semicolon-delimited list of numbers, or null
Public property UniqueID (Inherited from Control.)
Public property Version (Inherited from SPControl.)
Protected property ViewState (Inherited from Control.)
Protected property ViewStateIgnoresCase (Inherited from Control.)
Public property ViewStateMode (Inherited from Control.)
Public property Visible (Inherited from Control.)

Top

Methods

  Name Description
Protected method AddedControl (Inherited from Control.)
Protected method AddParsedSubObject (Inherited from Control.)
Public method ApplyStyleSheetSkin (Inherited from Control.)
Public methodStatic member BuildDelayedExecutionScript Builds a script which can be rendered inline and which accesses a method found in a file which is loaded on demand. Intended for use in an "onload" scenario.
Public methodStatic member BuildInteractiveOnDemandScript Builds a script which can be rendered inline and which accesses a method found in a file which is loaded on demand. Intended for use in an "onclick" scenario.
Protected method BuildProfileTree (Inherited from Control.)
Protected method ClearCachedClientID (Inherited from Control.)
Protected method ClearChildControlState (Inherited from Control.)
Protected method ClearChildState (Inherited from Control.)
Protected method ClearChildViewState (Inherited from Control.)
Protected method ClearEffectiveClientIDMode (Inherited from Control.)
Protected method CreateChildControls (Inherited from Control.)
Protected method CreateControlCollection (Inherited from Control.)
Public method DataBind() (Inherited from Control.)
Protected method DataBind(Boolean) (Inherited from Control.)
Protected method DataBindChildren (Inherited from Control.)
Public method Dispose (Inherited from Control.)
Protected method EnsureChildControls (Inherited from Control.)
Protected method EnsureID (Inherited from Control.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FindControl(String) (Inherited from Control.)
Protected method FindControl(String, Int32) (Inherited from Control.)
Public method Focus (Inherited from Control.)
Protected method GetDesignModeState (Inherited from Control.)
Public method GetDesignTimeHtml Returns the control as design-time HTML for editing in Web site development tools such as Microsoft Office FrontPage 2003. (Inherited from SPControl.)
Public method GetHashCode (Inherited from Object.)
Public methodStatic member GetRegisterOnDemandScriptStatement For the specified script file, calculates the client-side script necessary to register it on demand.
Public method GetRouteUrl(Object) (Inherited from Control.)
Public method GetRouteUrl(RouteValueDictionary) (Inherited from Control.)
Public method GetRouteUrl(String, Object) (Inherited from Control.)
Public method GetRouteUrl(String, RouteValueDictionary) (Inherited from Control.)
Public method GetType (Inherited from Object.)
Public method GetUniqueIDRelativeTo (Inherited from Control.)
Public method HasControls (Inherited from Control.)
Protected method HasEvents (Inherited from Control.)
Protected method IsLiteralContent (Inherited from Control.)
Protected method LoadControlState (Inherited from Control.)
Protected method LoadViewState (Inherited from Control.)
Protected method MapPathSecure (Inherited from Control.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnBubbleEvent (Inherited from Control.)
Protected method OnDataBinding (Inherited from Control.)
Protected method OnInit (Overrides Control.OnInit(EventArgs).)
Protected method OnLoad (Overrides Control.OnLoad(EventArgs).)
Protected method OnPreRender (Inherited from Control.)
Protected method OnUnload (Inherited from Control.)
Protected method OpenFile (Inherited from Control.)
Protected method RaiseBubbleEvent (Inherited from Control.)
Public methodStatic member Register(Page, String, Boolean) Registers the specified script file for the specified Web page and localizable value.
Public methodStatic member Register(String, Page, String, Boolean) Registers the specified script file for the specified user interface (UI) version, Web page, and localizable value.
Public methodStatic member Register(Control, Page, String, Boolean)
Public methodStatic member Register(Page, String, Boolean, Boolean) Registers the specified script file for the specified Web page and localizable and defer values.
Public methodStatic member Register(String, Control, Page, String, Boolean)
Public methodStatic member Register(String, Page, String, Boolean, Boolean) Registers the specified script file for the specified user interface (UI) version, Web page, and localizable and defer values.
Public methodStatic member Register(Control, Page, String, Boolean, Boolean)
Public methodStatic member Register(Page, String, Boolean, Boolean, String) Registers the specified script file for the specified Web page, scripting language, and localizable and defer values.
Public methodStatic member Register(String, Control, Page, String, Boolean, Boolean)
Public methodStatic member Register(Control, Page, String, Boolean, Boolean, String)
Public methodStatic member Register(Page, String, Boolean, Boolean, String, String) Registers the specified script file for the specified user interface (UI) version, Web page, script language, and localizable and defer values.
Public methodStatic member Register(Control, Page, String, Boolean, Boolean, String, String)
Public methodStatic member RegisterCore(Page, Boolean) Registers the core.js file.
Public methodStatic member RegisterCore(Control, Page, Boolean)
Public methodStatic member RegisterDelayedExecutionScript Renders an inline script which accesses a method found in a file which is loaded on demand.
Public methodStatic member RegisterOnDemand(Page, String, Boolean) Registers the script file to load on the Web page as an on-demand script.
Public methodStatic member RegisterOnDemand(Control, Page, String, Boolean)
Public methodStatic member RegisterScriptAfterUI(Page, String, Boolean) Registers the specified script file for the specified Web page and localizable value to load after the page user interface (UI) is loaded.
Public methodStatic member RegisterScriptAfterUI(Control, Page, String, Boolean)
Public methodStatic member RegisterScriptAfterUI(Page, String, Boolean, Boolean) Registers the specified script file for the specified Web page and localizable and defer values to load after the page user interface (UI) is loaded.
Public methodStatic member RegisterScriptAfterUI(Page, String, Boolean, String) Registers the specified script file for the specified Web page, user interface (UI) version, and localizable value, to load after the page UI is loaded.
Public methodStatic member RegisterScriptAfterUI(Control, Page, String, Boolean, Boolean)
Public methodStatic member RegisterScriptAfterUI(Control, Page, String, Boolean, String)
Public methodStatic member RegisterScriptAfterUI(Page, String, Boolean, Boolean, String) Registers the specified script file for the specified Web page, user interface (UI) version, and localizable and defer values, to load after the page UI is loaded.
Public methodStatic member RegisterScriptAfterUI(Page, String, Boolean, String, String) Register a script file with a given UIVersion to load after the page UI
Public methodStatic member RegisterScriptAfterUI(Control, Page, String, Boolean, Boolean, String)
Public methodStatic member RegisterScriptAfterUI(Control, Page, String, Boolean, String, String)
Public methodStatic member RegisterScriptAfterUI(Page, String, Boolean, Boolean, String, String) Register a script with a given UIVersion to load after the page UI
Public methodStatic member RegisterScriptAfterUI(Control, Page, String, Boolean, Boolean, String, String)
Protected method RemovedControl (Inherited from Control.)
Protected method Render Sends the content of the control to the specified HtmlTextWriter object, which writes the content that is rendered on the client. (Overrides Control.Render(HtmlTextWriter).)
Protected method RenderChildren (Inherited from Control.)
Public method RenderControl(HtmlTextWriter) (Inherited from Control.)
Protected method RenderControl(HtmlTextWriter, ControlAdapter) (Inherited from Control.)
Protected method ResolveAdapter (Inherited from Control.)
Public method ResolveClientUrl (Inherited from Control.)
Public method ResolveUrl (Inherited from Control.)
Protected method SaveControlState (Inherited from Control.)
Protected method SaveViewState (Inherited from Control.)
Protected method SetDesignModeState (Inherited from Control.)
Public method SetRenderMethodDelegate (Inherited from Control.)
Public method ToString (Inherited from Object.)
Protected method TrackViewState (Inherited from Control.)

Top

Events

  Name Description
Public event DataBinding (Inherited from Control.)
Public event Disposed (Inherited from Control.)
Public event Init (Inherited from Control.)
Public event Load (Inherited from Control.)
Public event PreRender (Inherited from Control.)
Public event Unload (Inherited from Control.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IParserAccessor.AddParsedSubObject (Inherited from Control.)
Explicit interface implemetationPrivate property IControlBuilderAccessor.ControlBuilder (Inherited from Control.)
Explicit interface implemetationPrivate property IDataBindingsAccessor.DataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property IExpressionsAccessor.Expressions (Inherited from Control.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.GetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate property IDataBindingsAccessor.HasDataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property IExpressionsAccessor.HasExpressions (Inherited from Control.)
Explicit interface implemetationPrivate method IDesignerEventAccessor.OnDesignerLoad (Inherited from SPControl.)
Explicit interface implemetationPrivate method IDesignerEventAccessor.OnDesignerPreRender (Inherited from SPControl.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.SetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.SetOwnerControl (Inherited from Control.)
Explicit interface implemetationPrivate property IControlDesignerAccessor.UserData (Inherited from Control.)

Top

See also

Reference

ScriptLink class

Microsoft.SharePoint.WebControls namespace