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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top