Add, Update and Delete List Items Programmatically in Sharepoint
Introduction:
In this article I will describe that how we can
– Add new item into sharepoint list programmatically.
– Update item into sharepoint list programmatically.
– Delete specific item from sharepoint list programmatically.
– Delete bunch of items from sharepoint list programmatically.
– Get list items from sharepoint list programmatically.
Add new Item:-
How to add new list item into sharepoint list programmatically? I have described this at below article:-
http://sharepoint.infoyen.com/2012/03/12/programmatically-adding-items-to-a-sharepoint-list/
Update Item:-
How we can update list item metadata as well as how we can update list item content type(little trick) into sharepoint? I have described this at below article:-
http://sharepoint.infoyen.com/2012/03/27/updating-a-list-item-programmatically/
Delete Item:-
Deleting item can be two ways. One SPWeb.ProcessBatchData and other SPListItem.Delete. Both are described at below url:-
Get List items:-
How to get list items from sharepoint list programmatically with greater performance? I have described this at below article:-
http://sharepoint.infoyen.com/2012/02/24/sharepoint-retrieve-list-item-using-caml-and-spquery/
Hope it helps.
Thanks!
Avinash
July 3, 2012
В·
Infoyen В·
2 Comments
Tags: MOSS, SharePoint В· Posted in: List, MOSS, SharePoint
2 Responses
Hi there, i read your blog from time to time and i own
a similar one and i was just wondering if you get a lot of spam remarks?
If so how do you prevent it, any plugin or anything you can
suggest? I get so much lately it’s driving me crazy so any support is very much appreciated.
Hi,
Thanks for reading my blog.
Below are my experience about spam protection:-
1. Math Comment Spam Protection : I like Math Spam comment plugin. I used this for few month. But later i removed since it does not work with WP Super cache.
2. Captcha : I don’t like this since it does not stop spams.
3. Akismet : This is very good plugin to filter spams from actual comments but we still receive spams in our site.
4. Quiz : Later I used this plugin. Its also not the good. I still receive spams
5. Block Spam By Math Reloaded : Currently I am using this plugin. It better than other captcha and quiz but not too good.
If any one get better spam protection plugin for wordpress then please share it.
Thanks!
Leave a Reply