摘要:
For anyone that is interested, I figured it out:using System;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Data.SqlClient;using System.Data;using System.Collections.Specialized;using System.Collections;using Microsoft.SharePoint;namespace C 阅读全文
摘要:
static SPFolder GetParentFolder(SPListItem itemToFind) { string FolderURL = itemToFind.Url.Remove(itemToFind.Url.LastIndexOf('/')); SPFolder myfolder = itemToFind.Web.GetFolder(FolderURL); try { if (myfolder != myfolder.Item.ParentList.RootFolder) return itemToFind.Web.... 阅读全文