System.Web.UI.WebControls Namespace HyperLinkField Class
Sets or retrieves the format for the URL of the hyperlinks in a HyperLinkField.
Inline |
<asp:hyperlinkfield datanavigateurlformatstring = strFormat ... > |
Script |
HyperLinkField.DataNavigateUrlFormatString = strFormat |
strFormat |
String specifying the format for the URL of the hyperlinks in the column. |
The property is read/write with no default value.
Use the DataNavigateUrlFormatString property to provide a custom format for the URL of the hyperlinks in a HyperLinkField.
The specified format is applied only when the URL is data-bound to a field in a data source. The field to bind to the URL of the hyperlinks in the column is specified by setting the DataNavigateUrlField property.
The following examples demonstrate how to use the DataNavigateUrlFormatString property to format the URL of data-bound hyperlinks in a HyperLinkField.
HyperLinkField Members Adding HyperLink Fields to a GridView Control