Help on iterative statement

Posted by Vijayar under C# on 5/11/2011 | Points: 10 | Views : 1005 | Status : [Member] | Replies : 0
I am a beginner in dotnet programming ,i have written a code for for each loop but the control is entering into the loop ,
foreach (var item in DropDownList1.Items.Cast<ListItem>().Where(li => li.Value.StartsWith("C", StringComparison.OrdinalIgnoreCase)))

item.Attributes.CssStyle.Add("style", "font-weight:bold");

item.Attributes.CssStyle.Add("color", "red");

can u please tell me where the mistake is



(No response found.)

Login to post response