Dear All,
I want to put a "if" condition to check value in a List(choice data type). For this I have written following code
somebody please help me to write it correct. I am getting error
if (item.File.Name.Contains("2013")) --- error hitting line.
I want to find out whether 2013 is available in the list or not !!!!!!
My complete working code:
---------------------------
foreach (ListItem item in lItems)
{
if (item.File.Name.Contains("2013"))
{
item["Prev_Yr_Card_Cal"] = "Yes";
item.Update();
clientContext.ExecuteQuery();
}