PageStateActionButton class
Create the button used to perform edit or save actions on a page.
Inheritance hierarchy
System.Object
System.Web.UI.Control
Microsoft.SharePoint.WebControls.SPControl
Microsoft.SharePoint.WebControls.PageStateActionButton
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class PageStateActionButton _
Inherits SPControl
'Usage
Dim instance As PageStateActionButton
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class PageStateActionButton : SPControl
Remarks
The control only works if there is a SPPageStateControl control and a ribbon control on the page. When the button is clicked, it sends a PageStateGroupEdit or PageStateGroupSave command to the ribbon.
The client script relies on the DOM structure rendered by the control. If the DOM structure of the control needs to be updated, then update the sts\client\script\ribbon\PageStateActionButton.cs file.
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.