09 2013 档案

摘要:下载文件如果下载其它类别的文件:SPSecurity.RunWithElevatedPrivileges(delegate(){using(SPSitecurrentSite=newSPSite(SPContext.Current.Site.ID)){using(SPWebweb=currentSite.OpenWeb(SPContext.Current.Web.ID)){stringfilename=Request.QueryString["FileName"].ToString();stringItemID=Request.QueryString["ID&qu 阅读全文
posted @ 2013-09-30 14:18 小笔头大做用 阅读(213) 评论(0) 推荐(0)
摘要:The most efficient way to a lot of transaction in SharePoint is using of SPWeb.ProcessBatchData method. For deleting operations there are very helpfull post. Code exaple from that post://WeprepareaString.FormatwithaString.Format,thisiswhywehavea{{0}}stringcommand=String.Format("{0}{{0}}Delete{{ 阅读全文
posted @ 2013-09-03 14:48 小笔头大做用 阅读(311) 评论(0) 推荐(0)