foreach (ListItem objTempItem in ListBox2.Items)
{
//Code to change background colour of listitem
//objTempItem.Attributes.Add("style", "background-color: RED");
//Code to change text or foreground colour of listitem
objTempItem.Attributes.Add("style","color:RED");
}
No comments:
Post a Comment