Export (0) Print
Expand All

EditPageHyperLink Class

A hyperlink control that when placed on the page offers a link that a user can click to edit the page.

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.HyperLink
        Microsoft.SharePoint.Publishing.WebControls.EditPageHyperLink

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class EditPageHyperLink : HyperLink

The hyperlink will hide itself when the page is in edit mode. To make this control work, Edit Page must be available on the Site Action menu. This is because this control automatically will use the NavagateUrl of the Edit Page menu.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft