MsProject技术交流群207637602

摘要: static void Main(string[] args) { string newPageUrl = ""; SPSecurity.RunWithElevatedPrivileges(delegate()// executing this code with elevated privileges will help whenever we create the publishing pages from a sharepoint portal site for an another portal site.If we create the publishing pa 阅读全文
posted @ 2013-07-08 10:59 鳄鱼的眼泪 阅读(993) 评论(0) 推荐(0)
摘要: 在VS中创建一个applicationPage映射到Layouts文件夹下,然后代码如下:SPList lstTest = web.Lists["Shared Documents"];string newUrl = string.Format("layouts/NewEditForm.aspx", web.ServerRelativeUrl, lstTest.RootFolder.Url);var form = web.GetFile(newUrl);if (form != null && form.Exists){ //string n 阅读全文
posted @ 2013-07-08 01:19 鳄鱼的眼泪 阅读(304) 评论(0) 推荐(0)

专业MSProject,QQ411033149