【转】在SharePoint Server 2010中更改“我的网站”
摘要:在安装SharePoint Server 2010的时候,创建的第一个站点是一个“NetBIOS名称”的网站,而这个时候,“我的网站”(或称“个人网站”),也是基于此NetBIOS名称的,例如,如果你的计算机名称是SP2010,则创建的SharePoint网站是http://sp2010,而“我的网站”则是“http://sp2010/my”,如果用防火墙(例如ISA Server)将此网站发布到...
阅读全文
posted @
2014-07-14 11:11
Roy Cao
阅读(582)
推荐(0)
SPQuery DateTime 类型查询
摘要:使用SPQuery查询时间,默认查询会忽略 时分秒,只检查日期,如果要检查时间,则必须添加 IncludeTimeValue='TRUE' 格式如下: <Where> <Gt> <FieldRef Name="StartTime" /> <Value Type="DateTime" IncludeT
阅读全文
posted @
2014-06-12 11:57
Roy Cao
阅读(235)
推荐(0)
Asp.net Web Application 打开 SharePoint 2010 Site 错误 The Web application at could not be found
摘要:解决办法如下:1. 修改项目的.net framework 为3.52. Application Pool 选用 Sharepoint App pool3. 修改 web.config如下: ...
阅读全文
posted @
2014-05-20 16:19
Roy Cao
阅读(368)
推荐(0)
How To Create SharePoint 2010 Site Collection In Its Own DB
摘要:在SharePoint 2010中可以使用Management Shell 为新建的Site Collection 创建自己的DB. 在 Shell中执行如下命令: 1. $w = get-spwebapplication http://yoursite (yoursite为你所要新建的SiteCollection 所在WebApplication中的SiteCollection) 2. New...
阅读全文
posted @
2013-11-28 14:05
Roy Cao
阅读(390)
推荐(0)
SharePoint 2010中添加HttpModule
摘要:SharePoint 2010 默认将所有的 httpModule 配置在 IIS7 专有的system.webServer/modules节中。(dll在bin目录)<system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="HttpModuleDemo" type="HttpModuleDemo.HttpModuleDemo,HttpModuleDemo"/> </modules>
阅读全文
posted @
2013-01-14 13:59
Roy Cao
阅读(434)
推荐(0)
Sharepoint 日历项 禁止拖拽
摘要:在页面中添加如下JS可禁止日历项的拖拽 ExecuteOrDelayUntilScriptLoaded(function(){ var calendarCreate = SP.UI.ApplicationPages.CalendarContainerFactory.create; SP.UI.ApplicationPages.CalendarContainerFactory.create = fu...
阅读全文
posted @
2012-11-09 14:10
Roy Cao
阅读(287)
推荐(0)
SPSiteDataQuery不完全使用手册(转)
摘要:“SPSiteDataQuery”,可以用来进行跨站多列表混合查询,检索同一个网站集的或者指定网站中符合某项条件的所有列表项的集合。每个SPWeb对象都包含一个GetSiteData方法,通过传递一个SPSiteDataQuery实例作为方法的参数,返回一个DataTable类型的结果。 当我们使用SPSiteDataQuery查询数据时,主要涉及到下面几个参数,Lists,Query,Webs,...
阅读全文
posted @
2012-10-24 12:02
Roy Cao
阅读(288)
推荐(0)
sharepoint ServerTemplate values
摘要:100 Generic list101 Document library102 Survey103 Links list104 Announcements list105 Contacts list106 Events list107 Tasks list108 Discussion board109 Picture library110 Data sources111 Site template...
阅读全文
posted @
2012-10-24 11:30
Roy Cao
阅读(192)
推荐(0)
Sharepoint 2010 SPListItem的显示或编辑页面删除后自定义操作
摘要:SPListItem显示或编辑页面删除后,会跳转到List的默认视图页面,如果我们想跳转到自定义页面改如何实现?我们通常想到的方法是通过EventHandler的ItemDeleted事件实现,很可惜,我尝试失败(或许可以,只是我不知道具体该怎么做)。通过查看页面源码,我发现这个删除是通过 一个 DeleteItemConfirmation的JS方法实现的。 这样我们就可以用SPD编辑列表的DispForm和EditForm页面,重写自己的DeleteItemConfirmation方法,实现页面跳转。function getQueryString(name) { var reg...
阅读全文
posted @
2012-10-23 14:31
Roy Cao
阅读(631)
推荐(0)
Sharepoint EventHandler 实现弹出错误消息
摘要:Sharepoint 在EventHandler中是不能实现弹出的消息的。那要实现弹出消息改如何实现呢? 虽然不能在EventHandler中实现消息弹出功能,但是可以实现自定义错误页面跳转,那我们是不是可以在自定义的错误页面进行消息弹出,然后页面返回到原始页面? 试一下吧: 1.建立EventReceiver项目,并新增自定义错误页面,结构如下: 2. ItemAdding事件中,添加如下代码:properties.ErrorMessage = "Start time must greater than now !"; properties.Status = SPEven
阅读全文
posted @
2012-10-23 14:09
Roy Cao
阅读(325)
推荐(0)
[转]SP 2010: How To – Event Receivers and Custom Error Pages
摘要:原文地址:http://zimmergren.net/technical/sp-2010-how-to-event-receivers-and-custom-error-pages SharePoint 2010 The object model has been extended in various places, and this is one of the most welcome ch...
阅读全文
posted @
2012-10-22 10:02
Roy Cao
阅读(212)
推荐(0)
【转】Import User Profile Photos from Active Directory into SharePoint 2010
摘要:原文地址:http://www.tcscblog.com/2010/11/18/import-user-profile-photos-from-active-directory-into-sharepoint-2010/ Requirements: SharePoint Server 2010 with the October Cumulative Update installed (**UP...
阅读全文
posted @
2012-10-08 17:40
Roy Cao
阅读(247)
推荐(0)
Sharepoint 2010 SP1升级后 FIMSynchronizationService 服务无法开启
摘要:Sharepoint 2010在进行升级sp1以后,可能会出现FIMSynchronizationService 无法开启的情况,查看Event Log后,发现错误日志如下: The service was unable to start because the version of the database does not match the version of the product. 博...
阅读全文
posted @
2012-10-08 17:16
Roy Cao
阅读(564)
推荐(0)
【转】How to install and configure SharePoint Server 2010 SP1 on the existing SP 2010 Farm
摘要:原文参考:http://www.sp-blogs.com/blogs/adnan/Lists/Posts/Post.aspx?ID=8 This article assumes that SharePoint Server 2010 is already installed and configured. You can download the SharePoint Foundation 20...
阅读全文
posted @
2012-10-08 17:07
Roy Cao
阅读(287)
推荐(0)
Sharepoint 自定义搜索
摘要:在使用FullTextSqlQuery 进行属性过滤,而同时属性中包含中英文混合时,我们应使用 ‘属性’=‘属性值’,进行过滤。 如 ("Category"='AD账号'), 而不应使用 Contains("Category",'AD账号'),这样会导致搜不到结果。
阅读全文
posted @
2012-09-29 14:01
Roy Cao
阅读(390)
推荐(0)
【转】Sharepoint 2010 配置我的站点及BLOG
摘要:原文地址:http://www.haogongju.net/art/1176390 1:配置我的站点 创建一个网站集,作为我的网站宿主。 这里主要记住你所创建的网站路径。 创建完成。 我们得到用户配置文件配置个人网站 如下配置的话,每个用户创建的个人网站都http://t400/person/{用户
阅读全文
posted @
2012-09-28 15:36
Roy Cao
阅读(181)
推荐(0)
Sharepoint 中新增 aspx页面,并在页面中新增web part
摘要:1. 用 sharepoint designer打开网站2. 在指定位置右键新增 aspx页面,编辑3. 插入以下HTML代码,修改其中的webpart为你要新增的webpart(如要修改webpart属性,可在designer中修改)<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><%@ Register Tagprefix="SharePoint"
阅读全文
posted @
2012-09-27 10:59
Roy Cao
阅读(1150)
推荐(0)
UserProfile同步配置
摘要:UserProfile配置步骤:1.进入管理中心-〉应用程序管理-〉管理服务器上的服务,启动“用户配置文件同步服务” 和 “User Profile Service”2.应用程序管理-〉管理服务应用程序,点击“User Profile Service Application”,进入管理配置文件服务界面3.选择“配置同步连接”-〉新建连接 ,进入配置界面,如下:其中连接设置的林名称可以是 域控制器名称 或 IP地址4.返回到“管理配置文件服务”,选择“启动配置文件同步”,等待同步完成。5.完成后可在“管理配置文件服务”中,查看同步结果:
阅读全文
posted @
2012-08-15 16:32
Roy Cao
阅读(555)
推荐(0)
Sharepoint 自定义字段
摘要:SharePoint已经为一般用户和开发者提供了非常好的可重用的能力。更进一步,你可以定义一个可重用的栏定义,这将为我们带来更大的灵活性。下面是创建一个自定义字段类型的总体步骤:1.新建SharePoint工程,并添加SharePoint映射文件夹Xml,在Xml的文件名必须以fldtypes_开头,否则不能识别。2. 添加自定义字段类(RoyCustomField),代码主要重载 protected override void CreateChildControls(),如果要设置默认值请Override DefaultValue,如果要验证格式是否正确 请Override GetValid
阅读全文
posted @
2012-08-14 10:15
Roy Cao
阅读(1399)
推荐(0)