SPPageContentManager members

Include protected members
Include inherited members

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.

Methods

  Name Description
Public methodStatic member IsClientScriptBlockRegistered(Page, String) Determines whether a pre-page-render script block that matches the specified key has been registered.
Public methodStatic member IsClientScriptBlockRegistered(Page, Type, String) Determines whether a pre-page-render script block that matches the specified key and type has been registered.
Public methodStatic member IsOnSubmitStatementRegistered(Page, String) Whether an onsubmit script matching the specified key has been registered
Public methodStatic member IsOnSubmitStatementRegistered(Page, Type, String) Whether an onsubmit script matching the specified key and type has been registered
Public methodStatic member IsStartupScriptRegistered(Page, String) Determines whether a startup script matching the specified key has been registered.
Public methodStatic member IsStartupScriptRegistered(Page, Type, String) Determines whether a startup script matching the specified key and type has been registered.
Public methodStatic member RegisterArrayDeclaration(Control, String, String) Registers a script which creates an array in the browser
Public methodStatic member RegisterArrayDeclaration(Page, String, String) Registers a script which creates an array in the browser
Public methodStatic 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 methodStatic 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 methodStatic member RegisterClientScriptInclude Registers a client script file with the ScriptManager control
Public methodStatic 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 methodStatic 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 methodStatic member RegisterInlineStyle Registers a style definition which will appear in the body of the page
Public methodStatic member RegisterOnSubmitStatement(Control, Type, String, String) Registers a script intended for execution during onsubmit
Public methodStatic member RegisterOnSubmitStatement(Page, Type, String, String) Registers a script intended for execution during onsubmit
Public methodStatic member RegisterScriptFile(Page, String, Boolean) Registers the specified script file for the specified Web page and localizable value.
Public methodStatic 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 methodStatic 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 methodStatic 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 methodStatic member RegisterStyleFile(String)
Public methodStatic member RegisterStyleFile(String, String, Boolean, [], Boolean, String)

Top

See also

Reference

SPPageContentManager class

Microsoft.SharePoint.WebControls namespace