attribute or is not a valid attribute od element ListItem

  • Thread starter Thread starter Dan
  • Start date Start date
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
 
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;).
 
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;).
 
Back
Top