Sharepoint MasterPage页里的31个ContentPlaceHolder占位符[通俗易懂]

Sharepoint MasterPage页里的31个ContentPlaceHolder占位符[通俗易懂]自定义SharepointMasterPage页,共有31个ContentPlaceHolder占位符,一个也不能少因为在应用到网站或网页时,网站或网页要向MasterPage页里对应的ContentPlaceHolder里填入内容,若有的ContentPlaceHolder不需要则可以把它隐藏掉而不要将其删除。<%@Masterlanguage=”C#”%…

大家好,又见面了,我是你们的朋友全栈君。

        
自定义
Sharepoint MasterPage
页,共有
31

ContentPlaceHolder
占位符,一个也不能少因为在应用到网站或网页时,网站或网页要向
MasterPage
页里对应的
ContentPlaceHolder
里填入内容,若有的
ContentPlaceHolder
不需要则可以把它隐藏掉而不要将其删除。

<%@Master language=”C#”%>

<%@ Register Tagprefix=”SharePoint” Namespace=”Microsoft.SharePoint.WebControls” Assembly=”Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %> <%@ Register Tagprefix=”Utilities” Namespace=”Microsoft.SharePoint.Utilities” Assembly=”Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %> <%@ Import Namespace=”Microsoft.SharePoint” %>

<%@ Import Namespace=”Microsoft.SharePoint.ApplicationPages” %>

<%@ Register Tagprefix=”WebPartPages” Namespace=”Microsoft.SharePoint.WebPartPages” Assembly=”Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

<%@ Register TagPrefix=”wssuc” TagName=”Welcome” src=”~/_controltemplates/Welcome.ascx” %>

<%@ Register TagPrefix=”wssuc” TagName=”DesignModeConsole” src=”~/_controltemplates/DesignModeConsole.ascx” %>

<HTML dir=”<%$Resources:wss,multipages_direction_dir_value%>” runat=”server” xmlns:o=”urn:schemas-microsoft-com:office:office” __expr-val-dir=”ltr”>

<HEAD runat=”server”>

<META Name=”GENERATOR” Content=”Microsoft SharePoint”>

<META Name=”progid” Content=”SharePoint.WebPartPage.Document”>

<META HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=utf-8″>

<META HTTP-EQUIV=”Expires” content=”0″>

<SharePoint:RobotsMetaTag runat=”server”/>

<Title ID=onetidTitle><asp:ContentPlaceHolder id=PlaceHolderPageTitle runat=”server”/></Title>

<SharePoint:CssLink runat=”server”/>

<SharePoint:Theme runat=”server”/>

<SharePoint:ScriptLink language=”javascript” name=”core.js” Defer=”true” runat=”server”/>

<SharePoint:CustomJSUrl runat=”server”/>

<SharePoint:SoapDiscoveryLink runat=”server”/>

<asp:ContentPlaceHolder id=”PlaceHolderAdditionalPageHead” runat=”server”/>

<SharePoint:DelegateControl runat=”server” ControlId=”AdditionalPageHead” AllowMultipleControls=”true”/>

<style type=”text/css”>

.style1 {

margin-right: 0px;

}

</style>

</HEAD>

<BODY scroll=”yes” οnlοad=”javascript:if (typeof(_spBodyOnLoadWrapper) != ‘undefined’) _spBodyOnLoadWrapper();”>

  <form runat=”server” οnsubmit=”return _spFormOnSubmitWrapper();”>

<WebPartPages:SPWebPartManager id=”m” runat=”Server”/>

 

<!– 全局站点导航及站点地图 –>

<asp:ContentPlaceHolder id=”PlaceHolderGlobalNavigation” runat=”server”>

<asp:ContentPlaceHolder id=”PlaceHolderGlobalNavigationSiteMap” runat=”server”> </asp:ContentPlaceHolder>

          </asp:ContentPlaceHolder>

 

            <!– 搜索框 –>

      <asp:ContentPlaceHolder id=”PlaceHolderSearchArea” runat=”server”>

  </asp:ContentPlaceHolder>

 

  <!– 站点名称 –>

  <asp:ContentPlaceHolder id=”PlaceHolderSiteName” runat=”server”>

  </asp:ContentPlaceHolder>

 

  <!– 顶级水平导航菜单条 –>

  <asp:ContentPlaceHolder id=”PlaceHolderTopNavBar” runat=”server”>

<!– 顶级水平导航菜单 –>

<asp:ContentPlaceHolder id=”PlaceHolderHorizontalNav” runat=”server”></asp:ContentPlaceHolder>

</asp:ContentPlaceHolder>

 

<!– 设计控制 –>

<asp:ContentPlaceHolder ID=”WSSDesignConsole” runat=”server”>

<wssuc:DesignModeConsole id=”IdDesignModeConsole” runat=”server”/>

</asp:ContentPlaceHolder>

<asp:ContentPlaceHolder ID=”SPNavigation” runat=”server”>

<SharePoint:DelegateControl runat=”server” ControlId=”PublishingConsole”

   PrefixHtml=”&lt;tr&gt;&lt;td colspan=&quot;4&quot; id=&quot;mpdmconsole&quot; class=&quot;ms-consolemptablerow&quot;&gt;”

   SuffixHtml=”&lt;/td&gt;&lt;/tr&gt;”>

</SharePoint:DelegateControl>

</asp:ContentPlaceHolder>

 

<!– 站点标题左侧的空格 –>

 <asp:ContentPlaceHolder id=”PlaceHolderTitleLeftBorder” runat=”server”></asp:ContentPlaceHolder>

 

 <!– 站点导航条 –>

 <asp:ContentPlaceHolder id=”PlaceHolderTitleBreadcrumb” runat=”server”>

         

         <!– 设置当前网站的导航 –>

<asp:SiteMapPath SiteMapProvider=”SPContentMapProvider” id=”ContentMap” SkipLinkText=”” NodeStyle-CssClass=”ms-sitemapdirectional” runat=”server”/>

 

<!– 设置当前站点的导航

<asp:SiteMapPath SiteMapProvider=”SPSiteMapProvider” id=”ContentMap” SkipLinkText=”” NodeStyle-CssClass=”ms-sitemapdirectional” runat=”server”/>

–>

 </asp:ContentPlaceHolder>

 

 <asp:ContentPlaceHolder id=”PlaceHolderPageTitleInTitleArea” runat=”server” />

 

 <asp:ContentPlaceHolder id=”PlaceHolderMiniConsole” runat=”server”/>

 <asp:ContentPlaceHolder id=”PlaceHolderTitleRightMargin” runat=”server”></asp:ContentPlaceHolder>

 

 <asp:ContentPlaceHolder id=”PlaceHolderTitleAreaSeparator” runat=”server”/>

  <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBarDataSource” runat=”server” />

  <asp:ContentPlaceHolder id=”PlaceHolderCalendarNavigator” runat=”server” />

  <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBarTop” runat=”server”/>

  <!– 左侧导航栏 –>

  <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBar” runat=”server”>

  </asp:ContentPlaceHolder>

  <asp:ContentPlaceHolder id=”PlaceHolderLeftActions” runat=”server”></asp:ContentPlaceHolder>

  <asp:ContentPlaceHolder id=”PlaceHolderNavSpacer” runat=”server”></asp:ContentPlaceHolder>

       <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBarBorder” runat=”server”></asp:ContentPlaceHolder>

          <asp:ContentPlaceHolder id=”PlaceHolderBodyLeftBorder” runat=”server”></asp:ContentPlaceHolder>

       

                 <!– 这个要添加,因为若不加这标签则Webpart的编辑工具栏则会显示在网页的下面,从而使整个网站的结构乱掉 –>

        <PlaceHolder id=”MSO_ContentDiv” runat=”server”>

<!– 网页描述信息 –>

        <asp:ContentPlaceHolder id=”PlaceHolderPageDescription” runat=”server”/>

       

        <!– 站点内容的主要内容信息 –>

   <asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server”>

   </asp:ContentPlaceHolder>

</PlaceHolder>

 

<asp:ContentPlaceHolder id=”PlaceHolderBodyRightMargin” runat=”server”></asp:ContentPlaceHolder>

 

  <asp:ContentPlaceHolder id=”PlaceHolderFormDigest” runat=”server”>

<SharePoint:FormDigest runat=server/>

  </asp:ContentPlaceHolder>

   <input type=”text” name=”__spDummyText1″ style=”display:none;” size=1/>

   <input type=”text” name=”__spDummyText2″ style=”display:none;” size=1/>

  </form>

  <asp:ContentPlaceHolder id=”PlaceHolderUtilityContent” runat=”server”/>

<asp:ContentPlaceHolder id=”PlaceHolderBodyAreaClass” runat=”server”/>

<asp:ContentPlaceHolder id=”PlaceHolderTitleAreaClass” runat=”server”/>

</BODY>

</HTML>

转载于:https://www.cnblogs.com/netcai/archive/2009/09/16/1567385.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/159859.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

  • A星算法说明「建议收藏」

    A星算法说明「建议收藏」A*算法说明文章目录前言原理说明如何构造h(n)h(n)h(n)一、欧氏距离二、曼哈顿距离三、其他关于g(n)g(n)g(n)路况设置如何实现完整的流程核心代码a_star.ha_star.cppmap_matrix.hmap_matrix.cpp代码使用示例GUI程序下载链接GUI程序使用说明前言  因为最近要写一个毕业设计,有用到自动寻路的功能,因为我要在一个机器里跑算法然后控制机器人自动按照路线到达目的地,所以用Python等解释型语言或Unity等游戏引擎写这个算法都不太合适,我使用的机器要尽

  • sql数据库查询语句大全_sql基本语句大全

    sql数据库查询语句大全_sql基本语句大全1、今天select*from表名whereto_days(时间字段名)=to_days(now());2、昨天SELECT*FROM表名WHERETO_DAYS(NOW())-TO_DAYS(时间字段名)<=13、近7天SELECT*FROM表名whereDATE_SUB(CURDATE(),INTERVAL7DAY)<=date(时间字段名)4、近30天SELECT*FROM表名where

  • 强化学习(Q-Learning,Sarsa)

    强化学习(Q-Learning,Sarsa)ReinforcementLearning监督学习–>非监督学习–>强化学习。监督学习:拥有“标签”可监督算法不断调整模型,得到输入与输出的映射函数。非监督学习:无“标签”,通过分析数据本身进行建模,发掘底层信息和隐藏结构。但是1.标签需要花大量的代价进行收集,在有些情况如子任务的组合数特别巨大寻找监督项是不切实际的。2.如何更好的理解数据,学习到具体的映射而不仅仅是数据的底…

  • 【crossbeam系列】3 crossbeam-deque:work-stealing算法

    【crossbeam系列】3 crossbeam-deque:work-stealing算法work-stealing算法简介crossbeam-deque包提供了一个无锁的双向队列(deque)。那么这个双向队列在并发中又起到了什么重要的作用呢?这就涉及到了在多任务环境下的一…

  • SSH整合JPA+Mysql

    SSH整合JPA+Mysql

  • BroadcastReceiver详解以及应用[通俗易懂]

    使用Android手机的时候,我们的手机管家中经常会出现开机自启动某某app,那么对于这个某某APP来说,他是怎么知道系统什么时候开机的呢?还有,系统短信怎么知道收到了短信?以及屏幕点亮与关闭、应用卸载与安装等等。这就讲到了Android四大组件之一:BroadcastReceiver,翻译是广播接收者。意思就是接收广播用的。他可以接收到系统开机完成的广播,以及系统电量不足的广播,以及系统收到短信的

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号