By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,330 Members | 1,379 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,330 IT Pros & Developers. It's quick & easy.

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

P: n/a

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
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.