上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 错误信息:System.ArgumentException: Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page“/”应用程序中的服务器错误。 --------------------------------------------------------------------------------SPListItem 无效。提供的 SPListItem 与发布页面不兼容。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中 阅读全文
posted @ 2012-05-08 16:25 大刀客 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 需要激活网站feature :SharePoint Server 发布 阅读全文
posted @ 2012-05-07 14:07 大刀客 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Sample code:item["ParticipantsPicker"]=BuildMultiSPUserValue(new string[]{"user1","user2"},web);public static SPFieldUserValueCollection BuildMultiSPUserValue(string[] userValues,SPWeb web) { SPFieldUserValueCollection userCollection = new SPFieldUserValueCollection(); 阅读全文
posted @ 2012-05-04 10:20 大刀客 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Objective In this article, I am going to explain, how to insert multi user or more than one user in Share point list. About SharePoint list where value would be inserted There is a list called TestingUser.There is one column in list called UserTest.This column is of type Person or Group.Allow multip 阅读全文
posted @ 2012-05-04 09:34 大刀客 阅读(310) 评论(0) 推荐(0) 编辑
摘要: public static SPUser GetSPUser(SPWeb web,string userName) { SPUser user=web.EnsureUser(userName); return user; }public static int ParseLookupId(string fieldValue,SPList list,string fieldName) { int lookUpID = 0; try { foreach (SPListItem item in list.Items) { if (item[fieldName].ToString()==fieldVa. 阅读全文
posted @ 2012-05-03 14:42 大刀客 阅读(163) 评论(0) 推荐(0) 编辑
摘要: When created a custom timer job in sharepoint 2010. I receive the famous "Object reference not set to an instance of an object" error on the very first line of the Execute() method.Using(SPsite site = spcontext.current.site.ID){using(spweb web = site.openweb()}When a timer job runs there i 阅读全文
posted @ 2012-05-02 16:19 大刀客 阅读(286) 评论(0) 推荐(0) 编辑
摘要: To enable the mobile view feature, you've to run this command on the Sharepoint/MOSS server:stsadm -o activatefeature -name MobilityRedirect -URL http://yourSiteURL , where yourSiteURL is the URL address of your Sharepoint site.Now you're ready to go mobile, simply by browsing the url http:/ 阅读全文
posted @ 2012-04-30 23:45 大刀客 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Getting calendar items using Exchange Web ServicesI am no expert at exchange, let alone Exchange Web Services (EWS), but I recently had to use it to get at calendar information for a project. Let me tell you that the documentation for EWS sucks and the API is not very intuitive. That said, I was abl 阅读全文
posted @ 2012-04-26 10:47 大刀客 阅读(394) 评论(0) 推荐(0) 编辑
摘要: SharePoint定时器 (SPJobDefinition) 转需要写一个自定义的sharepoint timer job, 目的是要定时到Site Collection Images这个List里检查图片的过期日期,如果即将过期的话,需要发送email到相关的人员。GOOGLE了一下,发现资料很少。不过幸运的是我发现了 Andrew Connell的博客,上面有一个很详细的示例代码。http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx代码的基本思路是:我们的自定义job类需要从SP 阅读全文
posted @ 2012-04-25 10:52 大刀客 阅读(227) 评论(0) 推荐(0) 编辑
摘要: UPDATE: In the comments I’ve seen some people saying that this doesn’t work for them. One thing that I discovered recently is that, in order for this to work, the URL specified in your schema.xml file MUST MATCH the List attribute on all your Field references in field.xml and schema.xml. If these do 阅读全文
posted @ 2012-04-24 19:50 大刀客 阅读(458) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页