PC Review


Reply
Thread Tools Rate Thread

attribute or is not a valid attribute od element ListItem

 
 
Dan
Guest
Posts: n/a
 
      2nd Aug 2008
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


 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      2nd Aug 2008

"Dan" <(E-Mail Removed)> wrote in message
news:epDj%(E-Mail Removed)...
> 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.


--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
 
Dan
Guest
Posts: n/a
 
      2nd Aug 2008
thanks

"Anthony Jones" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
>
> "Dan" <(E-Mail Removed)> wrote in message
> news:epDj%(E-Mail Removed)...
>> 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.
>
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Attribute 'Title' is not a valid attribute of element 'ProviderWebPart' etc.. rote Microsoft ASP .NET 5 29th Oct 2008 04:55 AM
Attribute 'ms_2d_layout' is not a valid attribute of element 'table' CdnRebel Microsoft ASP .NET 4 4th Jul 2007 07:56 PM
Attribute 'onchange' is not a valid attribute of element 'TextBox' Joe Kovac Microsoft ASP .NET 2 2nd May 2007 02:11 PM
Validation (XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'table' perspolis Microsoft ASP .NET 1 23rd Jan 2007 07:57 AM
Validation (XHTML 1.0 Transitional): Attribute 'leftmargin' is not a valid attribute of element 'body'. anonymous Microsoft ASP .NET 1 2nd Aug 2006 09:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:37 PM.