Thursday, September 25, 2014

How to create an SPList by adding SPListItems from List ?

Hello,


<SPListItem> itself a collection so you don't need to create SPLIstItemCollection again. Just try thsi code to get item from your code:



foreach(SPListItem item in Output)
{
string title = item["Title"];
}

OR use below simple code to get list item via SPLIstItemCollection:


http://ift.tt/RQKJC2




Hemendra:Yesterday is just a memory,Tomorrow we may never see

Please remember to mark the replies as answers if they help and unmark them if they provide no help


No comments:

Post a Comment