Text Property
Collapse the table of content
Expand the table of content

MobileListItem.Text Property

 

Gets or sets the text contained in the item. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public string Text { get; set; }

Property Value

Type: System.String

The text in the item. The default is an empty string ("").

If the Text property is an empty string or is never set, either programmatically or through the constructor, it returns the value of the Value property for the specified list item.

The Text property can be specified by using the Text attribute, or as inner text. If the Text property is specified in both ways, the inner text always takes precedence. However, if the Text property is programmatically set, the inner text is automatically removed and the newly set property takes precedence.

.NET Framework
Available since 1.1

List
MobileListItem Class
System.Web.UI.MobileControls Namespace
Introduction to the List Control
Introduction to the SelectionList Control

Return to top
Show:
© 2016 Microsoft