HyperLinkField.Text Property
Assembly: System.Web (in system.web.dll)
[LocalizableAttribute(true)] public: virtual property String^ Text { String^ get (); void set (String^ value); }
/** @property */ public String get_Text () /** @property */ public void set_Text (String value)
public function get Text () : String public function set Text (value : String)
Property Value
The text to display for each hyperlink in the HyperLinkField. The default is an empty string (""), which indicates that this property is not set.Use the Text property to specify the caption to display for the hyperlinks in a 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 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 DataTextField and Text properties are both set, the 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 LocalizableAttribute and ASP.NET Globalization and Localization.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
HyperLinkField ClassHyperLinkField Members
System.Web.UI.WebControls Namespace
HyperLinkField.DataNavigateUrlFields Property
HyperLinkField.DataNavigateUrlFormatString Property
HyperLinkField.DataTextField Property
HyperLinkField.DataTextFormatString Property
HyperLinkField.NavigateUrl Property
HyperLinkField.Target Property
Note