System.Web.UI.WebControls.HyperLinkField.DataTextField Property

Gets or sets the name of the field from the data source containing the text to display for the hyperlink captions in the System.Web.UI.WebControls.HyperLinkField object.

Syntax

[System.ComponentModel.TypeConverter("System.Web.UI.Design.DataSourceViewSchemaConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultValue("")]
public virtual string DataTextField { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the HyperLinkField.DataTextField property to specify the name of the field that contains the text to display for the hyperlink captions in the System.Web.UI.WebControls.HyperLinkField object.

Instead of using this property to bind the hyperlink captions to a field, you can use the HyperLinkField.Text property to set the hyperlink captions to a static value. With this option, each hyperlink shares the same caption.

Note:

If the HyperLinkField.DataTextField and HyperLinkField.Text properties are both set, the HyperLinkField.DataTextField property takes precedence.

Requirements

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