开发SharePoint 自定义WebService 的小工具
摘要:是一个开源的项目,地址:http://www.codeproject.com/Articles/10728/WSS-Web-Service-DISCO-and-WSDL-Generator-Helper这个工具的主要作用是把wsdl文件和disco文件转换为aspx文件,具体使用详见这篇文章:htt...
阅读全文
posted @
2014-10-25 14:51
wengnet
阅读(235)
推荐(0)
SharePoint 2013 和 SharePoint 2010 功能对比
摘要:微软的网站找东西太麻烦了,在这记录一下。从 SharePoint 2010 更改为 SharePoint 2013http://technet.microsoft.com/zh-cn/library/ff607742.aspx
阅读全文
posted @
2013-08-07 11:35
wengnet
阅读(624)
推荐(0)
SharePoint 的PowerShell命令之获取所有网站模版
摘要:Get-SPWebTemplate | select Name, Title
阅读全文
posted @
2013-08-07 11:12
wengnet
阅读(296)
推荐(0)
制作X509证书
摘要:makecert -r -pe -n "CN=XXX" -b 01/01/2005 -e 01/01/2020 -sky exchange -ss my
阅读全文
posted @
2013-06-19 17:11
wengnet
阅读(258)
推荐(0)
DocumentSet 操作代码(二)
摘要:public static DocumentSet GetDocumentSetById(this SPList list, int ID){ return DocumentSet.GetDocumentSet(list.GetItemById(ID).Folder);}public static bool IsDocumentSet(this SPListItem item){ bool documentSetItem = false; DocumentSet documentSet = null; if (null != item && item.IsFolder()) {
阅读全文
posted @
2013-03-29 16:51
wengnet
阅读(876)
推荐(1)
SharePoint2010 文档集操作-创建
摘要:using (SPSite site = new SPSite("http://sharepoint2010")) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists.TryGetList("Docs"); SPContentType ct = web.ContentTypes[new SPContentTypeId("0x...
阅读全文
posted @
2013-02-27 13:58
wengnet
阅读(451)
推荐(1)
自定义SharePoint2010文档库的上传页面
摘要:使用SP内置的上传控件,代码如下: <script type="text/javascript"> function DocumentUpload() { document.getElementById("idUploadCtl").MultipleUpload(); } </script> <object id="idUploadCtl" name="idUploadCtl" classid="CLSID:07B06095-5687-4d13-9E32-12B4259C98
阅读全文
posted @
2013-01-06 13:40
wengnet
阅读(612)
推荐(0)
JQuery 删除SharePoint菜单
摘要:直接看代码:jQuery(document).ready(function($){ var objects = document.getElementsByTagName("ie:menuitem"); for (var i = 0; i < objects.length; i++) { itm = objects[i]; if ($('#' + itm.id).attr("text") == "Sign in as Different User") { $('#' + itm.id).remov
阅读全文
posted @
2012-09-28 12:44
wengnet
阅读(220)
推荐(0)
SharePoint2010 ECMAScript常用提醒方法
摘要:不多说,直接上代码: 1 var statusId = ''; 2 var notifyId = ''; 3 function AddNotification() { 4 notifyId = SP.UI.Notify.addNotification("Hello World!", true); 5 } 6 function RemoveNotification() { 7 SP.UI.Notify.removeNotification(notifyId); 8 notifyId = ''; 9 }10 function Ad
阅读全文
posted @
2012-08-02 08:54
wengnet
阅读(638)
推荐(1)
分享一些ShrePoint的代码(二)
摘要:上传文件到SharePoint 1 if (File1.PostedFile == null) 2 return; 3 4 string destUrl = TextBox1.Text; 5 6 SPWeb site = new SPSite(destUrl).OpenWeb(); 7 8 Stream fStream = File1.PostedFile.InputStream; 9 byte[] contents = new byte[fStream.Length];10 11 fStream.Read(contents, 0, (int)fStream.Length);12...
阅读全文
posted @
2012-07-27 14:11
wengnet
阅读(737)
推荐(0)
分享一些ShrePoint的代码(一)
摘要:遍历所有网站和列表 1 SPSite oSiteCollection = SPContext.Current.Site; 2 SPWebCollection collWebsite = oSiteCollection.AllWebs; 3 4 for (int i = 0; i < collWebsite.Count; i++) 5 { 6 using (SPWeb oWebsite = collWebsite[i]) 7 { 8 SPListCollection collList = oWebsite.Lists; 9 10 for (int...
阅读全文
posted @
2012-07-26 15:35
wengnet
阅读(674)
推荐(1)
动态创建CustomAction
摘要:直接上Code:XML1 <CustomAction2 GroupId="PersonalActions"3 Id="bac2275f-3512-4ca0-b0c1-6e47907b2bd0"4 Location="Microsoft.SharePoint.StandardMenu"5 ControlAssembly="你的程序集"6 ControlClass="动态创建菜单的类名字"7 >8 </C...
阅读全文
posted @
2012-07-13 15:10
wengnet
阅读(449)
推荐(0)
添加SharePoint命令集
摘要:在PowerShell中注册SharePoint程序集Add-PSSnapin Microsoft.SharePoint.PowerShell获取所有在PowerShell中注册的程序集:Get-PSSnapin –Registered
阅读全文
posted @
2011-03-07 17:14
wengnet
阅读(419)
推荐(0)
获取PowerShell某个对象的所有命令
摘要:Get-Command –PSSnapin “Microsoft.SharePoint.PowerShell” | format-table name > C:\SP2010_PowerShell_Commands.txtGet-Command –PSSnapin “Microsoft.SharePoint.PowerShell” | select name, definition | format-list > C:\SP2010_PowerShell_Commands.txt
阅读全文
posted @
2011-03-07 16:25
wengnet
阅读(443)
推荐(0)
SharePoint2010的Client Object Mode 之站点操作
摘要:[代码]注意:其中“STS#1”为空白站点模板,“STS#0”为团队站点模板
阅读全文
posted @
2011-01-21 14:20
wengnet
阅读(372)
推荐(0)