Hi
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
vijaya