Hi all,
I'd like to use my application pages (with code behind, not modified with Sharepoint Designer pages) for View/Edit/New operations.
As I know there is an issue how to do it:
SPContentType ct=web.Lists["ListName"].ContentTypes["ContentTypeName"];
ct.EditFormUrl="_layouts/youreditpage.aspx";
ct.Update();
And this works fine for common Lists, but when I'm trying to do it with External List,
I have an Exception on Update method:
SPException: The collection cannot be modified.
I've tryied:
web.AllowUnsafeUpdates = true;
//or
ct.ReadOnly = false;
// or
ct.Sealed = false;
and nothing of it helped me...
Is anybody knows how can I make it? May be another method to do it?
View Complete Post