Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Registers the specified script file for the specified Web page and localizable value.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Sub Register ( _
page As Page, _
name As String, _
localizable As Boolean _
)
'Usage
Dim page As Page
Dim name As String
Dim localizable As BooleanScriptLink.Register(page, name, localizable)
public static void Register(
Page page,
string name,
bool localizable
)
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.
Examples
ScriptLink.Register(Page,"ExampleScript.js", false);
ScriptLink.Register(Page,"ExampleScript.js", False)