2011-07-04 21 views
0

我已註冊了提供sharepoint站點的office 365 。在office365共享點站點中編輯具有自定義主頁面的頁面的內容

我創建了一個簡單的母版頁和內容頁, 但我無法編輯頁面,從SharePoint Designer中的內容

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> 

enter image description here

+0

其奇怪的行爲 –

回答

1

顯然,要麼提到xmlns:asp =「asp」,然後您可以通過Web界面進行編輯,但不能在SPD中進行編輯,或者將其刪除,然後您可以在SPD中編輯,但不能通過網絡進行編輯。

+0

對於我需要添加此屬性的每個元素+1,對不對? –

+0

我在http://sharepoint.stackexchange.com/questions/15897/editing-content-of-page-having-custom-master-page-in-office365-sharepoint-site上發佈了相同的問題,得到了不同的答案.. –

2

default.master中,刪除asp:Content標記下的屬性xmlns:asp="asp"

+0

請查看更新後的問題 –

相關問題