SPPageContentManager.IsStartupScriptRegistered method (Page, String)

Determines whether a startup script matching the specified key has been registered.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function IsStartupScriptRegistered ( _
    page As Page, _
    key As String _
) As Boolean
'Usage
Dim page As Page
Dim key As String
Dim returnValue As Boolean

returnValue = SPPageContentManager.IsStartupScriptRegistered(page, _
    key)
public static bool IsStartupScriptRegistered(
    Page page,
    string key
)

Parameters

  • key
    Type: System.String

    A unique identifier for the script block.

Return value

Type: System.Boolean
true if a startup script matching the specified key has been registered; otherwise, false.

See also

Reference

SPPageContentManager class

SPPageContentManager members

IsStartupScriptRegistered overload

Microsoft.SharePoint.WebControls namespace