[DataGrid:HyperLinkColumn] How to make HyperLinkColumn with two datafields?

J

Jongmin

Hi!
I am making HyperLinkColumn in datagrid.

It is simple to make the hyerlinkcolumn with one datafield.
<asp:HyperLinkColumn
Text="NAME"
DataNavigateUrlField="NAME"
DataNavigateUrlFormatString="http://www.aaa.com?Name={0}"
SortExpression="NAME" />

However, I want to make the hyperlinkconlum with two or
more datafields

I tried to the following ways... but it didn't work...

1)
<asp:HyperLinkColumn
Text="NAME"
--->DataNavigateUrlField="ID"
--->DataNavigateUrlField="NAME"
DataNavigateUrlFormatString="http://www.aaa.com?ID={0}
&Name={0}"
SortExpression="NAME" />

2)
<asp:HyperLinkColumn
Text="NAME"
--->DataNavigateUrlField="ID, NAME"
DataNavigateUrlFormatString="http://www.aaa.com?ID={0}
&Name={0}"
SortExpression="NAME" />


How to make HyperLinkColumn with two or more datafields?

Thanks,
Jongmin
 

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

Top