how to use html tags for ListBox items

S

sushil suthar

I am trying to format each item in the listbox using tags
but when I am runnig it in browser , text is not getting
formatted but it is showing tags.


what i am doing is here :



<asp:ListBox ID="ListBox1" runat="server" Style="position: relative; left: 380px; top: -112px;">
<asp:ListItem>Date <b>15/10/2005 </b> </asp:ListItem>
<asp:ListItem>Date <b>31/12/2008</b></asp:ListItem>
</asp:ListBox>

Output:








Any ideas?

Any help or pointers will be appericiated.


Thanks and Regards,
Sushil.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top