473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

attribute or is not a valid attribute od element ListItem

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
Aug 2 '08 #1
2 2336

"Dan" <nm@zszsz.xvwrote in message
news:ep****************@TK2MSFTNGP02.phx.gbl...
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
Aug 2 '08 #2
Dan
thanks

"Anthony Jones" <An*@yadayadayada.comschreef in bericht
news:OH**************@TK2MSFTNGP02.phx.gbl...
>
"Dan" <nm@zszsz.xvwrote in message
news:ep****************@TK2MSFTNGP02.phx.gbl...
>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


Aug 2 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dietmar Gräbner | last post by:
Hi Right now I'm dealing with derivation by restriction and I have some questions concerning the attribute property use in context of the derivation. Consider following Schema: <xs:schema...
2
by: piraticman | last post by:
Hi. I have some code for a javascript jump menu... It validated with HTML 4.0 but now does not validate with XHTML strict 1.0. I have used name atributes in my code which aparantly are not...
3
by: Patrick | last post by:
>Is it actually valid to have an XML document with 2 XML Elements having the same ID attribute? XML Spy seems to allow something like the following <?xml version="1.0" encoding="UTF-8"?>...
4
by: Todd Perkins | last post by:
Hello all, surprisingly enough, this is my first newsgroup post, I usually rely on google. So I hope I have enough info contained. Thank you in advance for any help! Problem: I am getting...
6
by: Joe | last post by:
Hello All: Does anyone know the difference between the name and id attributes in an Html control? I noticed on PostBack that I can not retrieve the Request.Form("id_value") but I can retrieve...
3
by: patrizio.trinchini | last post by:
Hi, how can remove sibling elements based on the value of an attribute ? For instance, gven the XML document: <root> <parentElment> <testElement name="A"> <removableElement/>
4
by: Mark | last post by:
Hi, I am trying to port an application for ASP.NET 1.1 to ASP.NET 2.0. Why am I getting "Error 1 Validation (Internet Explorer 6): Attribute 'ms_2d_layout' is not a valid attribute of element...
0
by: Aray | last post by:
Let us see the test file following: -------file nowork.xsd begin----------- <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"...
5
by: =?Utf-8?B?bXBhaW5l?= | last post by:
So this one is confusing as everything works but I want this warning to go away. This is what I have (within a .NET 2.0 Web Application, using VS.NET 2008 SP1): default.aspx: <%@ Page...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.