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 property array<String^>^ DataNavigateUrlFields {
	array<String^>^ get ();
	void set (array<String^>^ value);
}
/** @property */
public String[] get_DataNavigateUrlFields ()

/** @property */
public void set_DataNavigateUrlFields (String[] value)

public function get DataNavigateUrlFields () : String[]

public function set DataNavigateUrlFields (value : String[])

Not applicable.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: