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
page
Type: System.Web.UI.PageThe page containing the control.
key
Type: System.StringA 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.