SharePoint开发:架构、特性与部署全解析
1. SharePoint架构与页面创建概述
在SharePoint开发中,我们首先从整体上了解其架构。可以使用SharePoint Designer来创建母版页和网站页面。这里需要区分网站页面和应用程序页面,网站页面更侧重于展示内容,而应用程序页面则提供特定的功能。Visual Studio没有用于母版页和网站页面的模板,但为应用程序页面提供了项目项模板。
应用程序页面必须存放在Layouts文件夹中。在标准的SharePoint Foundation安装中,该文件夹通常位于C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS。同时,我们会看到_layouts的引用,例如在重定向到访问被拒绝的应用程序页面时,会使用URL/_layouts/accessdenied.aspx。对于默认网站集的根网站,Layouts文件夹映射到URLhttp://localhost/_layouts;对于其他网站,其映射的URL以该网站的根URL开头,如http://localhost/subsite的Layouts文件夹URL为http://localhost/subsite/_layouts。
2. SharePoint功能特性
SharePoint功能是部署的基本构建块,从技术角度看,它是一个名为