05 2013 档案
用lists.asmx web service 获取文件夹中的文件数量 - SharePoint 2010
摘要:listWebService.Lists listService = new listWebService.Lists(); listService.Url = "http://emiliu:8081/team2/_vti_bin/Lists.asmx"; listService.Credentials = System.Net.CredentialCache.DefaultCredentials; XmlDocument xmlDoc = new System.X... 阅读全文
posted @ 2013-05-27 14:40 Liu_Liu 阅读(298) 评论(0) 推荐(0)
SharePoint 2010 - 获取文档的上一个publish version
摘要:以下代码可以用来获取文档的上一个major version, 并且复制内容到另一document library。using (SPWeb web = new SPSite("http://emiliu:8081/team2").OpenWeb()){ SPFile file = web.GetFile("http://emiliu:8081/team2/Pages/original page.aspx"); //Get all version SPFileVersionCollection versions = file.Versions; ... 阅读全文
posted @ 2013-05-24 13:40 Liu_Liu 阅读(188) 评论(0) 推荐(0)
Custom an Site Hierachy with TreeNode in SharePoint 2010
摘要:今天做了一个Site Hierachy控件,可以显示当前web,以及当前web下的所有list和subweb,虽然简单,但是挺有成就感的。在这和大家分享一下,有兴趣的童靴可以看看。代码如下。using System;using Microsoft.SharePoint;using Microsoft.SharePoint.WebControls;using System.Web.UI.WebControls;namespace Site_hierachy.Layouts.Site_hierachy{ public partial class SiteTreeView : LayoutsP... 阅读全文
posted @ 2013-05-23 17:48 Liu_Liu 阅读(169) 评论(0) 推荐(0)