Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SharePoint 2010
SDK Documentation
ScriptLink Class
ScriptLink Methods
 RegisterOnDemand Method
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
ScriptLink..::.RegisterOnDemand Method

Registers the script file to load on the Web page as an on-demand script.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Visual Basic (Declaration)
Public Shared Sub RegisterOnDemand ( _
    page As Page, _
    strFile As String, _
    localizable As Boolean _
)
Visual Basic (Usage)
Dim page As Page
Dim strFile As String
Dim localizable As Boolean

ScriptLink.RegisterOnDemand(page, strFile, _
    localizable)
C#
public static void RegisterOnDemand(
    Page page,
    string strFile,
    bool localizable
)

Parameters

page
Type: System.Web.UI..::.Page
The Page onto which the script file is to be loaded.
strFile
Type: System..::.String
A string type representing the name of the script file to be registered.
localizable
Type: System..::.Boolean
true if the script file is in the localized directory; otherwise, false.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker