asp.net.ph

ListItem.Attributes Property

System.Web.UI.WebControls Namespace   ListItem Class


Returns a collection of attribute name and value pairs for the ListItem that are not directly supported by the class.

Syntax


Script ListItem.Attributes [ strAttribute ] [ = strValue ]

This property can only be used programmatically; it cannot be set when declaring the control.

Property Value

A System.Web.UI.AttributeCollection of name and value pairs.

Remarks

Use the Attributes collection to manage the attribute name and value pairs declared in the opening and closing tags of the ListItem, but not directly supported by the class.

This property can also be used to set or retrieve the individual attribute items in the collection. You can programmatically add to, or remove attributes from, the collection.

See Also

ListItem Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph