System.Web.UI.WebControls Namespace HyperLinkColumn Class
Sets or retrieves the URL to navigate to when a hyperlink in the column is clicked.
Inline |
<asp:hyperlinkcolumn navigateurl = strUrl ... > |
Script |
HyperLinkColumn.NavigateUrl = strUrl |
strUrl |
String specifying the URL to navigate to when a hyperlink in the column is clicked. |
The property is read/write with no default value.
Use the NavigateUrl property to specify the URL to link to when a hyperlink in the column is clicked.
NOTE: When this property is set, all hyperlinks in the column share the same URL link.
To provide a separate URL for each hyperlink in the column, use the DataNavigateUrlField property.
NOTE: The DataNavigateUrlField and NavigateUrl properties cannot both be set at the same time. If both properties are set, the DataNavigateUrlField property takes precedence.
HyperLinkColumn Members Adding HyperLink Columns to a DataGrid Control