Update SharePoint List Item

This is an example of how to update a SharePoint list item.

Reference
Microsoft.Sharepoint (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll)

Code
SPListItem listItem = web.Lists["MyList"].GetItemById(some_int_id); // Or you can do web.Lists["MyList"].Items[index] bool unsafeUpdates = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; secureItem["Some Field Name"] = "Some Value"; // Use .SystemUpdate if you don't want to trigger any events or change the Modify Time of the item secureItem.Update; web.AllowUnsafeUpdates = unsafeUpdates;