System.Web.UI.WebControls.HyperLinkColumn.Text Property

Gets or sets the text caption to display for the hyperlinks in the column.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the HyperLinkColumn.Text property to specify the text caption to display for the hyperlinks in the column.

Note:

When this property is set, all hyperlinks in the column share the same text caption.

To provide a separate text caption for each hyperlink in the column, use the HyperLinkColumn.DataTextField property.

Note:

The HyperLinkColumn.DataTextField and HyperLinkColumn.Text properties cannot both be set at the same time. If both properties are set, the HyperLinkColumn.DataTextField property takes precedence.

Note:

Text is not HTML encoded before it is displayed in the System.Web.UI.WebControls.HyperLinkColumn. This makes it possible to embed script within HTML tags in the text. If the values for this column come from user input, be sure to validate the values to reduce security vulnerabilities.

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: 1.0.5000.0, 2.0.0.0