Sharepoint 将standart DispForm替换为外部列表的“我的应用程序”页面
我想使用我的应用程序页面(带有代码隐藏,不使用Sharepoint Designer页面修改)进行查看/编辑/新建操作 据我所知,如何做到这一点存在一个问题:Sharepoint 将standart DispForm替换为外部列表的“我的应用程序”页面,sharepoint,list,types,external,Sharepoint,List,Types,External,我想使用我的应用程序页面(带有代码隐藏,不使用Sharepoint Designer页面修改)进行查看/编辑/新建操作 据我所知,如何做到这一点存在一个问题: SPContentType ct=web.Lists["ListName"].ContentTypes["ContentTypeName"]; ct.EditFormUrl="_layouts/youreditpage.aspx"; ct.Update(); 这对于普通列表是正确的,但是当我尝试使用外部列表时 我对更新方法有一个异常:
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;
这对我没有任何帮助
我已尝试在库设置中修改“允许管理内容类型”属性,但在外部列表中找不到该属性。我需要帮助,谢谢 您应该能够像对任何其他列表一样,对外部列表/外部内容类型使用自定义表单。以下是一些特定于外部列表的指针: