How to add a new item to SharePoint list in server object-model from using C# this is my code and i want to add items using textboxes
SPWeb web = SPContext.Current.Web;
SPListItemCollection booksListaItems = web.Lists["Books"].GetItems();
foreach(SPListItem item in booksListaItems)
{
lstItems.Items.Add(item.GetFormattedValue("Title"));
}

0 commentaires:
Enregistrer un commentaire