System.Web.UI.WebControls Namespace ListItem Class
Sets or retrieves the text displayed for a ListItem.
Inline |
<asp:listitem text = strText ... > |
Script |
ListItem.Text = strText |
strText |
String specifying the text displayed for the ListItem. |
The property is read/write with no default value.
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.
ListItem Members