System.Web.UI.HtmlControls.HtmlAnchor.HRef Property

Gets or sets the URL target of the link specified in the System.Web.UI.HtmlControls.HtmlAnchor server control.

Syntax

[System.Web.UI.UrlProperty]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue("")]
public string HRef { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to specify the URL to link to when the System.Web.UI.HtmlControls.HtmlAnchor control is clicked.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0