Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPPageContentManager members

SharePoint 2013

Manages all the resource content that may be registered on a SharePoint page, including script files, inline scripts, style files, inline styles, and hidden input fields. Spweb Ensures that the content can be either appropriately placed on a fully-rendered HTML page or correctly transmitted to a browser in the case of a partial page load.

The SPPageContentManager type exposes the following members.

  Name Description
Public method Static member IsClientScriptBlockRegistered(Page, String) Determines whether a pre-page-render script block that matches the specified key has been registered.
Public method Static member IsClientScriptBlockRegistered(Page, Type, String) Determines whether a pre-page-render script block that matches the specified key and type has been registered.
Public method Static member IsOnSubmitStatementRegistered(Page, String) Whether an onsubmit script matching the specified key has been registered
Public method Static member IsOnSubmitStatementRegistered(Page, Type, String) Whether an onsubmit script matching the specified key and type has been registered
Public method Static member IsStartupScriptRegistered(Page, String) Determines whether a startup script matching the specified key has been registered.
Public method Static member IsStartupScriptRegistered(Page, Type, String) Determines whether a startup script matching the specified key and type has been registered.
Public method Static member RegisterArrayDeclaration(Control, String, String) Registers a script which creates an array in the browser
Public method Static member RegisterArrayDeclaration(Page, String, String) Registers a script which creates an array in the browser
Public method Static member RegisterClientScriptBlock(Control, Type, String, String) Registers a client script block using a control, specifying the registering control, an identifying key, the script type, and the script literal. Intended for execution before the page is rendered.
Public method Static member RegisterClientScriptBlock(Page, Type, String, String) Registers a client script block using a page, specifying a registering page, an identifying key, the script type, and the script literal. Intended for execution before the page is rendered.
Public method Static member RegisterClientScriptInclude Registers a client script file with the ScriptManager control
Public method Static member RegisterHiddenField(Control, String, String) Registers a hidden input field for the current control, specifying the control, the name of the hidden field, and the value of the hidden field.
Public method Static member RegisterHiddenField(Page, String, String) Registers a hidden input field for the current control, specifying the page, the name of the hidden field, and the value of the hidden field.
Public method Static member RegisterInlineStyle Registers a style definition which will appear in the body of the page
Public method Static member RegisterOnSubmitStatement(Control, Type, String, String) Registers a script intended for execution during onsubmit
Public method Static member RegisterOnSubmitStatement(Page, Type, String, String) Registers a script intended for execution during onsubmit
Public method Static member RegisterScriptFile(Page, String, Boolean) Registers the specified script file for the specified Web page and localizable value.
Public method Static member RegisterScriptFile(Page, String, Boolean, Boolean, String, String) Registers a script file for the specified user interface (UI) version, Web page, script language, and localizable and defer values.
Public method Static member RegisterStartupScript(Control, Type, String, String) Registers a startup script block by control, specifying the registering control, the script type, an identifying key, and the script literal.
Public method Static member RegisterStartupScript(Page, Type, String, String) Registers a startup script block by page, specifying the registering page object, the script type, an identifying key, and the script literal.
Public method Static member RegisterStyleFile(String)
Public method Static member RegisterStyleFile(String, String, Boolean, [], Boolean, String)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.