摘要: 比较正统的是用来与list item 的itemadding的event handler,代码如下:SPList currentList = properties.List; SPQuery query = new SPQuery(); query.Query = "<Where><Eq><FieldRef Name='Author'/><Value Type='Integer'><UserID Type='Integer'/></Value></Eq> 阅读全文
posted @ 2013-01-26 21:20 举重-若轻 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 碰到这个错误了,差了半天没找到彻底的解决办法,折中一点是先在vs中deploy了,然后执行以下install-spsolution的命令,再部署一下,就部署上了。PS> install-spsolution -identity suveryeventreceiverproject1.wsp -gacdeployment以下文章都只能提供些线索:http://social.technet.microsoft.com/Forums/nl-NL/sharepoint2010programming/thread/a1eab1a6-ab21-4d76-8e3f-0c5deb38ff0ehttp:/ 阅读全文
posted @ 2013-01-26 21:18 举重-若轻 阅读(16657) 评论(0) 推荐(0) 编辑
摘要: Start-SPAssignment -Global$SiteUrl = "your siteurl"$NewSystemMasterPageUrl = "/CorporateCommunications/_catalogs/masterpage/v4.master"$site = Get-SPSite $SiteUrl$topWeb = Get-SPWeb $site.Urlforeach ($web in $topWeb.Webs){ #Write-host $web.Title $web.MasterUrl $web.MasterUrl = $Ne 阅读全文
posted @ 2013-01-26 15:44 举重-若轻 阅读(138) 评论(0) 推荐(0) 编辑