System.Web.UI.WebControls.HyperLinkField.Text Property

Gets or sets the text to display for each hyperlink in the System.Web.UI.WebControls.HyperLinkField object.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the HyperLinkField.Text property to specify the caption to display for the hyperlinks in a System.Web.UI.WebControls.HyperLinkField object. When this property is set, each hyperlink shares the same caption.

Instead of using this property to set the hyperlink captions, you can use the HyperLinkField.DataTextField property to bind the hyperlink captions to a field in a data source. This allows you to display a different caption for each hyperlink.

Note:

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

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