由于wss3的页面是基于asp.net2.0的,所以,它里面的每个页面都可以像制作asp.net2.0的页面一样制作。例如,我们可以制作master页面如下:

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

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

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

<HTML>

<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"></SharePoint:RobotsMetaTag>

       <LINK href="/css/global.css" rel=stylesheet>

       <LINK href="/css/standard.css" rel=stylesheet> 

       <Title ID=onetidTitle>gdfg</Title>      

 

       <meta name="Microsoft Theme" content="Verdant 1011, default">

</HEAD>

<BODY scroll="yes" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">

  <form runat="server" onsubmit="return _spFormOnSubmitWrapper();">

             <WebPartPages:SPWebPartManager runat="server" id="WebPartManager"></WebPartPages:SPWebPartManager>

          

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

                           

                            </asp:ContentPlaceHolder>

                           

      </form>            

       </BODY>

</HTML>

      

普通页面如下:

       <%@ Page masterpagefile="_catalogs/masterpage/default3.master" language="C#" title="无标题 1" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" %>

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

<%@ Register tagprefix="WebParts" namespace="WebParts" assembly="WebParts" %>

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

<asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderMain">    

       <table width="100%" border="0" cellpadding="0" cellspacing="0">

              <tr>

                     <td height="30">

                     <SharePoint:AspMenu runat="server" id="AspMenu1" DataSourceID="SiteMapDataSource1">

                            <StaticItemTemplate>

                                   &nbsp;

                            </StaticItemTemplate>

                     </SharePoint:AspMenu>

                     <asp:SiteMapDataSource runat="server" ID="SiteMapDataSource1"/></td>

              </tr>

       </table>  

       <WebPartPages:SPProxyWebPartManager runat="server" id="ProxyWebPartManager">

       </WebPartPages:SPProxyWebPartManager>

       <WebPartPages:WebPartZone id="g_CF2F085610124FA482753DF5810BDE46" runat="server" title="区域 1"><ZoneTemplate>

       <WebParts:List runat="server" Css="li0001" Title="List" 背景色="橘红色" ID="List1" Count="5" BackGroundCss="backgroundcss" __MarkupType="vsattributemarkup" __WebPartId="{AEF971F4-D539-4297-B09F-C62BE9A118C7}" WebPart="true" __designer:IsClosed="false" partorder="1"></WebParts:List>

</ZoneTemplate></WebPartPages:WebPartZone>

 

</asp:Content>

 

其实,制作时更简单的是,只要我们应该现在sharepoint designer里新建一个母板页,然后把里面所有的代码都删除,再把已经制作好了的母板页里的html代码拷贝进新建的页面(完全覆盖新建母板页的代码),新普通页面时,选择制作好了的母板页就可以了。用designer添加webpart等wss3的控件时,designer会自动帮你增加要引入的命名控件等必须项。