Naimur
Naimur

Reputation: 119

Read ListItems from Sharepoint List Programmatically

I have a custom list in sharepoint, which contains two colums such as date and person. Based on some condition on date, i need to send a mail to the respective person. This is my requirements. So i need to know how to get the ListItem programmatically. If anyother alternate way such as, through web services, help me put step by step pls....

Upvotes: 1

Views: 3353

Answers (2)

Shyam sundar shah
Shyam sundar shah

Reputation: 2523

 private void DeleteAllItemsUsingBatch()  
   {  
    using (SPSite site = new SPSite("http://mySharePointServer"))  
    {  
        SPWeb web = site.OpenWeb("/");  
        SPList list = web.Lists["Links"];  
        foreach (SPListItem item in list.Items)  
        {  
            // item is list item 
        }  

Upvotes: 1

Ryan
Ryan

Reputation: 24482

Fairly complete coverage of the topic :-

SO - Dated reminders in sharepoint calendars

Upvotes: 0

Related Questions