Advertisements

However, there's a known bug in the standard ListBox and DropDownList
classes, where item attributes are ignored. To get around this, you need to
create a new class derived from the standard ListBox or DropDownList class
and override it's RenderContents method to correctly render the attributes:

"Do" <> wrote in message
news:...
> Hi,
>
> In my listbox, I'd like to change the color of some listitems
> depending on user security.
>
> I tried wrapping the <font color=red></font> around
> my listitme's .text property, but the tags show up in the page load.
>
> What can I do here?
>
> Do

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!