asp:HyperLinkColumn question

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.
 
S

Svetlin Grancharov

Hi,

just include

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


Best,

Svetlin Grancharov
Frontline System
 
C

Chris Jackson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top