0

我已经注册了提供共享点站点的 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>

默认.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>

在此处输入图像描述

4

2 回答 2

2

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

于 2011-07-05T08:42:24.530 回答
1

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

于 2011-07-20T19:32:46.270 回答