| |||||||||||
HyperLinkField.DataNavigateUrlFields PropertySystem.Web.UI.WebControls Namespace HyperLinkField Class .NET Framework version 2.0 Sets or retrieves the fields from a data source to bind to the URL of the hyperlinks in a HyperLinkField. Syntax
Property Value
The property is read/write with no default value. RemarksUse the DataNavigateUrlFields property to specify or determine the field names from a data source to bind to the URL of the hyperlinks in a HyperLinkField.
When this property is set, the URL for each hyperlink in the column is set to the corresponding row values in the specified fields from the data source bound to the parent control. This allows setting a different URL for each hyperlink in the column. To specify the same URL for all hyperlinks, set the NavigateUrl property instead.
When using data binding, you can specify a custom display format for the hyperlink URLs by setting the DataNavigateUrlFormatString property. ExampleThe following examples demonstrate how to set the DataNavigateUrlFields property to dynamically set different URLs in a HyperLinkField at run time.
See AlsoHyperLinkField Members Adding HyperLink Fields to a GridView Control |
| ||||||||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme