asp.net.ph

HyperLinkField.DataNavigateUrlFormatString Property

System.Web.UI.WebControls Namespace   HyperLinkField Class


Sets or retrieves the format for the URL of the hyperlinks in a HyperLinkField.

Syntax


Inline <asp:hyperlinkfield datanavigateurlformatstring = strFormat ... >
Script HyperLinkField.DataNavigateUrlFormatString = strFormat

Property Value


strFormat String specifying the format for the URL of the hyperlinks in the column.

The property is read/write with no default value.

Remarks

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.

Example

The following examples demonstrate how to use the DataNavigateUrlFormatString property to format the URL of data-bound hyperlinks in a HyperLinkField.

GridView HyperLinkField Example
Run Sample | View Source
Dynamically Generated HyperLinkField Images
Run Sample | View Source
See Also

HyperLinkField Members   Adding HyperLink Fields to a GridView Control Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph