dragoon
Posts: 173
|
Posted: 11/26/2007, 6:05 AM |
|
Hello there,
I have a grid and a record form on a page.
On the record form I have 2 listboxes that have some elements highlighted (i.i. font color red)
The problem is, that after a postback (selecting a different page from the grid), the listboxes loses their style.
The style is inserted in BeforeShow event and looks like this:
foreach(ListItem li in usersLinkedListBox.Items) {
if (condition) {
li.Attributes.Add("style", "background-color: red;");
}
}
Any ideas? Should I place this code in a different event?
|