1

I have a custom list with a custom content type inherited from the Folder content type.

When I insert a new item in the list I do it like this:

newItem["Name"] = "New Folder";
newItem["Content Type"] = "Package";
newItem.Update();

The item is inserted but I found that its title is something like 51_.000 and if I insert another item the title is 52_.000 and so on.

Is there something wrong with this code? If so, how do I insert a folder with the title properly?

2 Answers 2

1

The Title field is not the same as the Name field. Try updating the Title field to the desired value.

1
  • I already did that and still not working Commented Jun 23, 2010 at 6:23
0

This is because you have the list in something like a Meeting Workspace.

You need to set the list to create Series items first.

This is the setting you need to set for the List. Ensure you do this at creation time, as you cannot undo it.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.multipledatalist.aspx

1
  • Sorry but the list is not in a meeting workspace, it is a custom list in a Team site Commented Jun 21, 2010 at 7:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.