【发布时间】:2011-04-07 07:35:00
【问题描述】:
我想使用我的应用程序页面(带有代码,未使用 Sharepoint Designer 页面修改)进行查看/编辑/新建操作。
据我所知,如何做到这一点存在问题:
SPContentType ct=web.Lists["ListName"].ContentTypes["ContentTypeName"];
ct.EditFormUrl="_layouts/youreditpage.aspx";
ct.Update();
这适用于常见列表,但是当我尝试使用外部列表时,
我在更新方法上有一个异常:
SPException: The collection cannot be modified
我试过了:
web.AllowUnsafeUpdates = true;
//or
ct.ReadOnly = false;
// or
ct.Sealed = false;
这对我没有任何帮助......
我尝试在库设置中修改“允许管理内容类型”属性,但在外部列表中找不到此属性。我需要帮助,谢谢!
【问题讨论】:
标签: sharepoint list types external