【问题标题】:Editing content of page having custom master page in office365 sharepoint site在 office365 sharepoint 站点中编辑具有自定义母版页的页面内容
【发布时间】:2011-09-28 07:28:29
【问题描述】:

我已注册 Office 365 提供共享点站点。

我创建了一个简单的母版页和内容页, 但是我无法从共享点设计器编辑页面内容

MasterPage.master

<%@Master language="C#"%>
<%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<SharePoint:RobotsMetaTag runat="server"></SharePoint:RobotsMetaTag>
</head>
<body>
    <form id="frmMain" runat="server">
    <asp:ContentPlaceHolder ID="cphMain" runat="server">
                </asp:ContentPlaceHolder>
    </form>
</body>
</html>

default.aspx

<%@ Page Language="C#" MasterPageFile="~site/MasterPage.master" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %>

<%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="content1" runat="server" ContentPlaceHolderID="cphMain">
My custom html
</asp:Content>

【问题讨论】:

    标签: c# asp.net sharepoint office365


    【解决方案1】:

    default.master 中,删除asp:Content 标记下的属性xmlns:asp="asp"

    【讨论】:

      【解决方案2】:

      显然,您要么提及 xmlns:asp="asp",然后您可以通过 Web 界面进行编辑,但不能在 SPD 中进行编辑,或者您将其删除,然后您可以在 SPD 中进行编辑,但不能通过 Web 进行编辑。

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多