I don't think that is what the OP means. Basically, I think he wants
to give HTML for some of the items, and have those be displayed in the
list.
That kind of support doesn't exist for the listbox control for any
browser, as far as I know. They only allow simple text.
The only thing close to that which I can think of would be the new
composition model in Avalon, which isn't even slated for release for a
year or two (more like two).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Dennis Myrén said:
Members of the System.Web.UI.WebControls namespace(system.web.dll) does
that.
For example:
System.Web.UI.WebControls.ListBox lb = new
System.Web.UI.WebControls.ListBox();
lb.Items.Add(new System.Web.UI.WebControls.ListItem("text", "value"));
lb.RenderBeginTag(myWriter);
lb.RenderControl(myWriter);
lb.RenderEndTag(myWriter);
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
Hi all,
I'm looking for a ListView/ListBox control that can render simple HTML
markup when drawing its list items.
Anyone got any ideas?
TIA
Sam Martin