attribute or is not a valid attribute od element ListItem

D

Dan

Hi,

i want to use character '<' and '>' (without quotes) as text in the listitem
of a dropdownlist in the aspx file.
<asp:ListItem Text="< or =" Value="2"></asp:ListItem>
there is no error, except in the aspx file: Visual Web Dev changes the color
"attribute or is not a valid attribute od element ListItem"


Any way to do that?
Thanks
Dan
 
A

Anthony Jones

Dan said:
Hi,

i want to use character '<' and '>' (without quotes) as text in the listitem
of a dropdownlist in the aspx file.
<asp:ListItem Text="< or =" Value="2"></asp:ListItem>
there is no error, except in the aspx file: Visual Web Dev changes the color
"attribute or is not a valid attribute od element ListItem"


Any way to do that?


use the entities &lt; and &gt; (In case you view NGs through a none to
bright web interface that is the ampersand character follow by gt; or lt;).
 
D

Dan

thanks

Anthony Jones said:
use the entities &lt; and &gt; (In case you view NGs through a none to
bright web interface that is the ampersand character follow by gt; or
lt;).
 

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

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top