文章分类 - SharePoint 2010
摘要:对于刚接触Sharepoint的人,铺天盖地的各种名词术语肯定会感到迷惑,此时最好的办法就是抓大放小,先搞清楚Sharepoint站点的整体脉络结构,然后再逐步细化理解。 Sharepoint站点的整体逻辑结构可以概括为以下的层级结构: Farm→Server→Application→SiteCollection→web→subweb→……其中每一级都是1:N的关系, 一个Farm可以包含多台服务器,一个Farm的所有成员会共用一个配置数据库(缺省为WSS_Content) ; 一台服务器也可包含多个Application。创建新的Application,这个是进入Sharepoint管理中心
阅读全文
摘要:1、代码调试确定进程cd c:\windows\system32\inetsrvappcmd list wppause注:保存成批处理文件,查看进程.bat,用的时候双击即可2、类似列表新建打开方式的弹出脚本<script type="text/javascript">function OpenFrameDialog(){var options =SP.UI.$create_DialogOptions();options.url="http://www.baidu.com";options.height=160;options.dialogR
阅读全文
摘要:SharePoint 2010在WIN7系统下建立开发环境 (MSDN上有比较详细的介绍,地址:http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx)要开发SharePoint 2010应用程序,开发人员必须构建一个SharePoint 2010开发环境。开发SharePoint 2010应用程序有一个基本的需求,就是所有的开发工作几乎都需要依赖于SharePoint 2010系统,换句话说,开发环境中除了Visual Studio 2010之外,还必须直接安装有SharePoint 2010。在本地安装一个V
阅读全文
摘要:Sharepoint 管理员账号密码一般是需要永不过期,如果变更密码之后,需要把相应的服务登陆密码需要变更。I was working on a project and all of the sudden my SharePoint site and Central Admin started giving me the error ‘Service Unavailable HTTP Error 503. The service is unavailable’ and I was not able to access either of them. I realized that I had
阅读全文
摘要:In Customize the People Search Results – Part 1 we learned how to pimp the search results from looking something like this:To something like this:In Part 2 we are going to learn how to add other fields (properties) to the Search results.How do we do this?Let’s first include the Mobile phone of a use
阅读全文
摘要:Out of the box:First of all let’s start off with showing how the default People Search Results look like:In my opinion not really something you can give to your users to work with. No labels, no design, no clear layout.This article will try to show you how you can beautify these results a bit.Prepar
阅读全文
摘要:SharePoint网站中默认的welcome菜单如下样式是固定的如下:下拉列表如下:现在需要把菜单颜色改成白色,下拉列表中只保留Sign in as Different User 和 Sign Out两项。查看相关代码如下:<%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %><wssuc:Welcome id="IdWelcomeMain" runat="se
阅读全文
摘要:我们可能会产生这样的需求,如何在Sharepoint Page中加入jQuery。我们知道,Sharepoint所有的"开箱即用"的主页(如:v4.master, default.master, minimal.master, and nightandday.master)中都包含有如下的HTML标识 <SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true"/&g
阅读全文
摘要:JQuery是我们在进行SharePoint开发的时候使用的比较频繁的JS类库。本文向大家介绍一种简单方便的方式,把JQuery框架集成到我们的SharePoint中。我们来创建这样一个Feature.还是使用Visual Studio 2010. 1.创建一个空SharePoint项目“Empty SharePoint Project”。 2.修改默认创建的Feature,重命名成JQuery,修改其对应的Title和Description。 3.创建一个普通的自定义控件,添加类文件,命名成jQueryControl.cs,该类继承自System.Web.UI.Control,重写其C...
阅读全文
摘要:下面的样式是在国外找的一点资料。这是2007的样式详细解析:CSS Reference Chart for SharePoint 2007 (Microsoft Office SharePoint Server 2007 and Windows SharePoint Services v3)这是2010的样式详细解析:SharePoint 2010 CSS Reference Chart
阅读全文
摘要:有的时候用户会提出一些需求,例如想在一个网站中一个比较显眼的位置修改自己的信息,这时我们往往需要做一个WebPart来给用户修改,这个WebPart的主要功能就是获取当前用户的UserProfile信息,然后提供一些可以编辑的信息给用户自己编辑并保存回UserProfile,怎么读取UserProfile呢?读取UserProfile需要提升用户权限,主要代码如下:View Code View Code SPSecurity.RunWithElevatedPrivileges(delegate { using (SPSi...
阅读全文
摘要:在SharePoint的使用上,User Profile有着很强大的功能,除了可以保存一些用户的基本信息外,另外还可以自定义一些属性保存用户其他的一些信息,但是在添加属性的时候需要注意几个地方:一、“名称”即为该属性在User Profile中的属性名,而“显示名称”是显示给用户所看到的名称,另外类型一定要设置为需要的类型,如果为字符串,还需注意其长度设置二、策略和编辑设置,其中策略设置上设不设必需从使用的角度上来说差别并不是很大,但是隐私设置很重要,如果设置为只有我,那么就只有本人和系统管理员才能看到该属性的值,其他人都看不到,如果用使用自定义Web Part来管理User Profile的
阅读全文
摘要:在开发管理User Profile的Web Part时,需要读取和写入User Profile的属性值,但是我们往往都只知道某一属性的“显示名称”,如果要知道该属性的“名称”的话,往往还需要去管理中心点击属性的编辑按钮进去看,实在是很不方便,那么能有其他方便的方法查看到User Profile中属性的名称吗?其实只需要一段很短的代码,具体如下:首先这段代码需要用到3个DLL,分别是Microsoft.SharePoint.dll; Microsoft.Office.Server.UserProfiles.dll; Microsoft.Office.Server.dll;然后在代码中将其引用:1
阅读全文
摘要:前段时间开发Web Part用到了Ajax控件,但是第一次部署过程相当曲折,特意做一个笔记,首先在下载AjaxControlToolKit控件的时候要注意版本,因为SharePoint 2010是基于.Net Framework 3.5的,所以我第一次下载了AjaxControlToolKit 3.5,但是在下载页里面看到了一条注意事项:Pages using controls from AJAX Control Tookit .NET 3.5must use the ToolkitScriptManager, rather than the ASP.NET ScriptManager.也就是
阅读全文
摘要:Error:When you first use VS2010to deploya sandboxed solution project (default project) , you may see this error:Error 1 Error occurred in deployment step 'Activate Features': Cannot start service SPUserCodeV4 on computer '<Server Name>'. 0 0 MySharePointProject1Resolution:Go to
阅读全文
摘要:Having the ability to see your correspondent's picture in Outlook 2010 is one of the things I like most about this product. It helps identifying who you are emailing with and in rather large enterprises, avoid mistakes when several people have the same first and last name. Even if they are usual
阅读全文
摘要:从SharePoint 2003开始,主题就作为一种自定义SharePoint外观的重要选项。SharePoint 2003和2007中的包括一系列开箱即用的主题,可以被网站所有者通过SharePoint UI应用到SharePoint网站。网页设计师和开发人员可以创建包含自定义图片及CSS文件的自定义主题。定制SharePoint 2007主题的一个问题是,网页设计师或开发人员需要创建自定义的CSS,图片和相关的主题注册文件才能实现主题的自定义。而且需要将其部署到SharePoint Web前端服务器的本地文件系统上。这样无疑就提高了主题定制的门槛,因为需要一定的技术知识和对物理服务器的访问
阅读全文
摘要:有的时候用户会提出一些需求,例如想在一个网站中一个比较显眼的位置修改自己的信息,这时我们往往需要做一个WebPart来给用户修改,这个WebPart的主要功能就是获取当前用户的UserProfile信息,然后提供一些可以编辑的信息给用户自己编辑并保存回UserProfile,怎么读取UserProfile呢?读取UserProfile需要提升用户权限,主要代码如下:View Code View Code SPSecurity.RunWithElevatedPrivileges(delegate { using (SPSi...
阅读全文
摘要:SharePoint和AD可以通过User Profile相互同步用户信息,其之间的属性对应关系如下表:用户配置文件显示名称用户配置文件属性AD DS 属性AD中中文名称可分辨名称SPS-DistinguishedNamedn分辨名SIDSIDobjectSid对象安全ID经理Managermanager经理名称PreferredNamedisplayName显示名称名字FirstNamegivenName名姓氏LastNamesn姓拼音显示姓名SPS-PhoneticDisplayNamemsDS-PhoneticDisplayName拼音显示姓名拼音名SPS-PhoneticFirstNa
阅读全文

浙公网安备 33010602011771号