asp.net.ph

HyperLinkColumn.DataNavigateUrlFormatString Property

System.Web.UI.WebControls Namespace   HyperLinkColumn Class


Sets or retrieves the display format for the URL of the hyperlinks in the column.

Syntax


Inline <asp:hyperlinkcolumn datanavigateurlformatstring = strFormat ... >
Script HyperLinkColumn.DataNavigateUrlFormatString = strFormat

Property Value


strFormat String specifying the display format for the URL of the hyperlinks in the column.

The property is read/write with no default value.

Remarks

Use the DataNavigateUrlFormatString property to provide a custom display format for the URL of the hyperlinks in the column. The specified format is only applied to the URL when the URL is data-bound to a field in a data source. Specify the field to bind to the URL of the hyperlinks in the column by setting the DataNavigateUrlField property.

Example

The following example demonstrates how to use the DataNavigateUrlFormatString property to format the data-bound hyperlinks in the column.

<asp:hyperlinkcolumn headertext = "Title"
   datatextfield = "title"
   datanavigateurlformatstring = "details_title.aspx?titleid={0}"
   datanavigateurlfield = "title_id" />

 Show me 

See Also

HyperLinkColumn Members   Adding HyperLink Columns to a DataGrid Control Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note