ScriptLink.Register method (Page, String, Boolean, Boolean, String)
Registers the specified script file for the specified Web page, scripting language, and localizable and defer values.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub Register ( _
page As Page, _
name As String, _
localizable As Boolean, _
defer As Boolean, _
language As String _
)
'Usage
Dim page As Page
Dim name As String
Dim localizable As Boolean
Dim defer As Boolean
Dim language As StringScriptLink.Register(page, name, localizable, _
defer, language)
public static void Register(
Page page,
string name,
bool localizable,
bool defer,
string language
)
Parameters
page
Type: System.Web.UI.PageThe Web page.
name
Type: System.StringA string that contains the name of the script file.
localizable
Type: System.Booleantrue if the script can be localized; otherwise, false.
defer
Type: System.Booleantrue to defer downloading and parsing of script files, including the core.js file, until after other elements of the page are downloaded; otherwise, false.
language
Type: System.StringA string that specifies the scripting language.