lItem = new ListItem
litem.Value = "Microsoft"
lItem.Text = "Broken by design"
lItem.Attributes.Add("style", "color: green")
OnPostBack of any element (not just the listbox where the above item is housed) causes the 'Attribute' "style = color: green" to be removed. The screen is correctly redrawn with all text and values as previously loaded but the style is lost. Any ideas how this can be preserved? I'd rather not have to track which items I have colored (and which colors) and have to reload it OnPostBack.
Thanks in advance...