THyperLinkColumn contains a hyperlink for each item in the column. You can set the text and the url of the hyperlink by Text and NavigateUrl properties, respectively. You can also bind the text and url to specific data field in datasource by setting DataTextField and DataNavigateUrlField. Both can be formatted before rendering according to the DataTextFormatString and DataNavigateUrlFormatString properties, respectively. If both Text and DataTextField are present, the latter takes precedence. The same rule applies to NavigateUrl and DataNavigateUrlField properties.
Namespace: System.Web.UI.WebControls
Properties
Text, string, kept in viewstate
Gets or sets the text of the hyperlink
EncodeText, boolean, default=true, kept in viewstate
Gets or sets the value indicating whether the hyperlink text should be HTML-encoded when rendering.
DataTextField, string, kept in viewstate
Gets or sets the name of the data field associated with the text of the hyperlink
DataTextFormatString, string, kept in viewstate
Gets or sets the string that is used to format the DataTextField value for the hyperlink text.
The format string is used as the first argument to the sprintf() function.
NavigateUrl, string, kept in viewstate
Gets or sets the url of the hyperlink
DataNavigateUrlField, string, kept in viewstate
Gets or sets the name of the data field associated with the url of the hyperlink
DataNavigateUrlFormatString, string, kept in viewstate
Gets or sets the string that is used to format the DataNavigateUrlField value for the hyperlink url.
The format string is used as the first argument to the sprintf() function.
Target, string, kept in viewstate
Gets or sets the target window or frame to display the Web page content linked to when the hyperlink component is clicked.
Valid values include '_blank', '_parent', '_self', '_top', and empty string.