摘要: ProblemDo users complain about SharePoint performance? Prior to SharePoint 2010, tracking down performance bottlenecks might involve attaching a debugger to code and enabling a trace from the SQL Server Profiler. Now, with SharePoint 2010, you can use a cool new feature called Developer Dashboard.So 阅读全文
posted @ 2012-04-19 15:59 大刀客 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 如果直接取列表项的值,person or group 类型字段会是 userid;#value 的样式,所以对此类型字段需转换成 spuser 处理SPUser test = GetSPUser(oItem, assocList.Fields.GetField("AssociateName"));if (user.Sid.Equals(test.Sid)){...}private SPUser GetSPUser(SPListItem item, SPField field){string currentValue = item[field.Title].ToString( 阅读全文
posted @ 2012-04-19 14:19 大刀客 阅读(354) 评论(0) 推荐(0) 编辑
摘要: First, in a feature receiver, I swapped the Event content type with the Schedule content type to take advantage of the Attendees field (and the cool Free/Busy field!):SPList list = lists["Calendar"];SPContentType newContentType = list.ContentTypes.Add(list.ParentWeb.ContentTypes[SPBuiltInC 阅读全文
posted @ 2012-04-19 09:51 大刀客 阅读(625) 评论(0) 推荐(0) 编辑