SPSiteDataQuery不完全使用手册(转)
摘要:“SPSiteDataQuery”,可以用来进行跨站多列表混合查询,检索同一个网站集的或者指定网站中符合某项条件的所有列表项的集合。每个SPWeb对象都包含一个GetSiteData方法,通过传递一个SPSiteDataQuery实例作为方法的参数,返回一个DataTable类型的结果。 当我们使用SPSiteDataQuery查询数据时,主要涉及到下面几个参数,Lists,Query,Webs,...
阅读全文
posted @
2012-10-24 12:02
Roy Cao
阅读(286)
推荐(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
阅读(190)
推荐(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
阅读(629)
推荐(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
阅读(324)
推荐(0)
div 拖动
摘要:var isDrag = 0; //是否可拖动标志,可拖动为1,不可拖动为2 var divAndMouseX; //鼠标落点距离div左上角x坐标的差距 var divAndMouseY; //鼠标落点距离div左上角y坐标的差距 var divMove; //鼠标按下时 function down(div) {//鼠标按下 isDrag = 1; //将div设置为可拖动 divM...
阅读全文
posted @
2012-10-22 10:30
Roy Cao
阅读(191)
推荐(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
阅读(210)
推荐(0)
JS 实现 Div 向上浮动
摘要:Html 及 JS 代码如下:<div id="newsOne" onmouseover="CleartTimeInterVal();" onmouseout="resetInterVal();" style="position: absolute; width: 100px;"> <a href="http://www.baidu.com" target="_blank">test Div</a> </div> <scr
阅读全文
posted @
2012-10-11 10:32
Roy Cao
阅读(6134)
推荐(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
阅读(562)
推荐(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
阅读(286)
推荐(0)