System.Web.UI.WebControls.ListControl.Text Property

Gets or sets the ListControl.SelectedValue property of the System.Web.UI.WebControls.ListControl control.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue("")]
[System.Web.UI.Themeable(false)]
public virtual string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ListControl.Text property gets and sets the same value that the ListControl.SelectedValuee property does.

The ListControl.SelectedValue property is commonly used to determine the value of the selected item in the System.Web.UI.WebControls.ListControl control. If no item is selected, an empty string ("") is returned.

You can also use the ListControl.SelectedValue property to select an item in the System.Web.UI.WebControls.ListControl control by setting it with the value of the item. If no items in the System.Web.UI.WebControls.ListControl control contain the specified value, an ArgumentOutOfRangeException exception is thrown.

Control developers can override the ListControl.SelectedValue property to support features that are not related to the ListControl.SelectedValue property.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0