1. Microsoft.SharePoint.dll Create EventFiring.cs 1.Right-click on the project, select Add and click on New Item. 2.In the templates pane, select Class. 3.Enter the Name as EventFiring and then click OK. 4.Replace EventFiring.cs with the following co…
接上篇,先贴ItemUpdated的代码: base.ItemUpdated(properties); if (properties.ListItem.FileSystemObjectType != SPFileSystemObjectType.Folder) return; if (properties.ListItem.ModerationInformation.Status == SPModerationStatusType.Approved) return; SPSecurity.Run…
当开发一个sharepoint门户网站,或者是一个内容管理的网站的时候,站点的模板通常会选用publish portal,或者是开启了publishing feature来对内容进行版本控制和流程控制. 在这种环境下,如果对整个站点进行爬网,就需要注意一个关于文档库中文件夹的问题: 文件夹的状态有draft,approved的两种,当创建一个文件夹的时候,文件夹的初始状态是draft,如果对整个站点进行爬网,那么draft状态下的文件夹里的内容是不会被爬到的,即使这些内容都是approved的状…
private void MoveItem(SPListItem sourceItem, SPListItem destinationItem) { if (sourceItem == null || destinationItem == null) return; destinationItem = GetDestinationItem(sourceItem.ID, destinationItem); SPFieldLookup lkpField = null; SPFieldLookupVa…
转:http://msdn.microsoft.com/en-us/library/gg252010(v=office.14).aspx Summary:  Learn how to create an event receiver for Microsoft SharePoint 2010 by using Microsoft Visual Studio 2010. Applies to:  Microsoft SharePoint Foundation 2010 | Microsoft Sh…
原文地址:https://github.com/appium/java-client/blob/master/docs/The-event_firing.md since 4.1.0 The purpose This feature allows end user to organize the event logging on the client side. Also this feature may be useful in a binding with standard or custo…
第一种方式:循环遍历List中的所有item,然后根据条件去判断当前item是否应该被删除[注:要用 i-- 方式去遍历,这也是删除集合里面item的常用做法,如果用 i++ 的方式去遍历删除,会出错,原因显而易见!] SPList targetList = null; try { targetList = currentWeb.GetList(currentWeb.ServerRelativeUrl.TrimEnd('/') + listUrl); } catch { } if (target…
今天在处理客户的一个问题的时候.我们已经把我们SharePoint EventHandler依赖的第三方的TIBCO.EMS.dll注冊到GAC里面了,可是日志里面还是抛出了不能载入被引用的第三方的程序集的异常. watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY2hhbmNlaW4wMDc=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center"> 在描写叙…
<script type="text/javascript"> // <![CDATA[ var chongdianbaId; var elm = document.getElementById("idAttachmentsTable"); var elmAttachmentRow = document.getElementById("idAttachmentsRow"); if ((elm == null || elm.row…
转载:http://www.cnblogs.com/kivenhou/archive/2013/02/22/2921954.html 操作List前请设置SPWeb的allowUnsafeUpdate = true; var site = new SPSite("http://stormwind:10000").RootWeb; site.AllowUnsafeUpdates = true; 添加sharepoint list数据 ===========================…