Adding item to sharepoint 2003 SPList Programmatically

I come accross some problems when adding new item to a SPList. The error i got is “Value does not fall within the expected range. ” This would only happen if you target list is empty. After do some googling, this seems is MS known bugs. Luckly there is workarround to solve this issue. Simple rules is

1. Add a new item, assign “Title” item and save it

2. Get the newly created item and update it with remaining items.

Here are the codes:

Read the rest of this entry (moved to www.bronios.com) »


2 Responses to “Adding item to sharepoint 2003 SPList Programmatically”

  1. MOSS Page Setting Error - Value does not fall within the expected range « yyTech Blog on .Net, SQL, SharePoint, Collaboration and tech tips. Says:

    [...] when try to change the “Page Setting” in MOSS 2007. Yes, again same error message as in here (In fact, this error occurs is various scenarios). This error only happens when you copy an aspx [...]

  2. chanaka Says:

    nice, thanks
    it works


Leave a Reply