Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (SPSite site = new SPSite("http://aissp2013/sites/Team"))
- {
- SPWeb web = site.RootWeb;
- SPList list = web.Lists["Employees"];
- SPListItem item = list.GetItemById(1);
- item.Properties.Add("Employee Name", "Nadeem Yousuf");
- item.Update();
- list.Update();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement