Hi,
I'm using a very simple code to add items to a list.
In debug I see all the item being added and calling Update, but at the end only the last one is actually added to the list.
The code is as follows:
SPList list = oSPWeb.Lists["ActivitiesList"];
SPListItem itemToAdd = list.Items.Add();
foreach (Activity act in activitiesList)
{
itemToAdd["Title"] = act.Description;
itemToAdd.Update();
}
Thanks,
DD