asp:HyperLinkColumn question

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
M

Maziar Aflatoun

Does anyone know how I can using <asp:HyperLinkColumn> have the same caption
and point to different URLs? (where the url is id=1,2,3,4,5)

Thank you
Maz.
 
Hi,

just include

<asp:HyperLinkColumn HeaderText="Header"
DataNavigateUrlField="ID"
DataNavigateUrlFormatString="nextPage.aspx?ID={0}"
Text="Column text"/>


Best,

Svetlin Grancharov
Frontline System
 
You can set the DataTextField property to display the same thing, and the
NavigateUrl property to display the different url. Just use {0} if you want
to pull from the DataNavigateUrlField if you have this target URL stored in
the data source you are binding from.
 
Back
Top