asp.net.ph

ListItem.Text Property

System.Web.UI.WebControls Namespace   ListItem Class


Sets or retrieves the text displayed for a ListItem.

Syntax


Inline <asp:listitem text = strText ... >
Script ListItem.Text = strText

Property Value


strText String specifying the text displayed for the ListItem.

The property is read/write with no default value.

Remarks

Use the Text property to specify or determine the text displayed in a list control for the item represented by the ListItem.

NOTE: If the Text property contains a null reference ( Nothing in Visual Basic ), the get accessor returns the value of the Value property. If the Value property in turn contains a null reference, an empty string is returned.

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