Export (0) Print
Expand All

HyperLinkField.DataNavigateUrlFields Property

Gets or sets the names of the fields from the data source used to construct the URLs for the hyperlinks in the HyperLinkField object.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[TypeConverterAttribute(typeof(StringArrayConverter))]
public virtual string[] DataNavigateUrlFields { get; set; }

Property Value

Type: System.String[]
An array containing the names of the fields from the data source used to construct the URLs for the hyperlinks in the HyperLinkField. The default is an empty array, indicating that DataNavigateUrlFields is not set.

Use the DataNavigateUrlFields property when the data source contains multiple fields that must be combined to create the hyperlinks for the HyperLinkField object. The fields specified in the DataNavigateUrlFields property are combined with the format string in the DataNavigateUrlFormatString property to construct the hyperlinks in the HyperLinkField object.

NoteNote

When you set the DataNavigateUrlFields property with declarative code in an .aspx file, use a comma-separated list of field names.

Instead of using this property to bind the URLs of the hyperlinks to a field, you can use the NavigateUrl property to set the hyperlinks' URL to a static value. With this option, each hyperlink shares the same URL.

NoteNote

If the DataNavigateUrlFields and the NavigateUrl properties are both set, the DataNavigateUrlFields property takes precedence.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft