SPPageContentManager.IsClientScriptBlockRegistered method (Page, Type, String)
Determines whether a pre-page-render script block that matches the specified key and type has been registered.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function IsClientScriptBlockRegistered ( _
page As Page, _
type As Type, _
key As String _
) As Boolean
'Usage
Dim page As Page
Dim type As Type
Dim key As String
Dim returnValue As Boolean
returnValue = SPPageContentManager.IsClientScriptBlockRegistered(page, _
type, key)
public static bool IsClientScriptBlockRegistered(
Page page,
Type type,
string key
)
Parameters
page
Type: System.Web.UI.PageThe page containing the control.
type
Type: System.TypeThe type of the client script block to search for.
key
Type: System.StringA unique identifier for the script block.
Return value
Type: System.Boolean
true if the client script block is registered; otherwise, false.