System.Web.UI.WebControls.HyperLinkField.NavigateUrl Property

Gets or sets the URL to navigate to when a hyperlink in a System.Web.UI.WebControls.HyperLinkField object is clicked.

Syntax

[System.Web.UI.UrlProperty]
[System.ComponentModel.Editor("System.Web.UI.Design.UrlEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultValue("")]
public virtual string NavigateUrl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the HyperLinkField.NavigateUrl property to specify the URL to navigate to when a hyperlink in a System.Web.UI.WebControls.HyperLinkField object is clicked. When this property is set, each hyperlink shares the same navigation URL.

Instead of using this property to set the URL for the hyperlinks, you can use the HyperLinkField.DataNavigateUrlFields property to bind the URLs of the hyperlinks to a field in a data source. This allows you to have a different URL for each hyperlink.

Note:

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

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0