System.Web.UI.WebControls.CommandField.SelectText Property

Gets or sets the caption for a Select button in a System.Web.UI.WebControls.CommandField field.

Syntax

[System.ComponentModel.Localizable(true)]
public virtual string SelectText { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the ButtonFieldBase.ButtonType property of a System.Web.UI.WebControls.CommandField field is set to ButtonType.Button or ButtonType.Link, use the CommandField.SelectText property to specify the text to display for a Select button.

Note:

As an alternative to displaying text for a Select button, you can display an image by first setting the ButtonFieldBase.ButtonType property to ButtonType.Image and then setting the CommandField.SelectImageUrl property.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.

Requirements

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