SPPageContentManager.RegisterScriptFile method (Page, String, Boolean)
Registers the specified script file for the specified Web page and localizable value.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub RegisterScriptFile ( _
page As Page, _
name As String, _
localizable As Boolean _
)
'Usage
Dim page As Page
Dim name As String
Dim localizable As BooleanSPPageContentManager.RegisterScriptFile(page, name, _
localizable)
public static void RegisterScriptFile(
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.