The Correct Way Of Updating List Items in SharePoint
Posted by Alin Olaru on 4 September, 2009
No comments yet
This item was filled under [ C#, SharePoint ]
Many times you will need to manipulate data within a list in your custom SharePoint page or web part. Out of these times, you might also need to edit the data in that list like in, for example, a user profile edit page or a contact edit page. Some might say that this is a piece of cake, just assign the required value to the SPListItem and be on your way. Alas, this is not the case, since if you only do this you might realize that the data you need hasn’t been updated in the database. Though it cannot be called a major inconvenience with the SharePoint object model, it is a bit disorienting and might be a bit of a hassle until you get the actual hang of it. Continue reading…