SharePoint Edit Mode Panel


/ Published in: C#
Save to your folder(s)

You need to register this at the top of the page (see code below). Remember you can do this on a layout page as well, instead of the master page.


Then place the PublishingWebControls:EditModePane tag inline (see below). The ID can be anything you want, just make sure not to duplicate it on a layout and master page.


Copy this code and paste it in your HTML
  1. <%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
  2.  
  3.  
  4. <PublishingWebControls:EditModePanel ID="EditModePanelMaster" runat="server">
  5. EDIT CONTENT HERE
  6. </PublishingWebControls:EditModePanel>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.