riskyricky1972
asked on
asp.net c# gridview
I have asp.net c# gridview and everything is working fine, and I just want to add hyperlink that will be able to carry a value like
primary key. (e.g. http://www123.com/default.aspx?hello=1) the 1 is come from the primary key valve
primary key. (e.g. http://www123.com/default.aspx?hello=1) the 1 is come from the primary key valve
ASKER
does not work. The hello={0} is harding code...I want it dynamically loaded from the primary key
hello={0} means "{0}" will get value of the Field specified in DataNavigateUrlFields (dynamic...)
If you look at the code & sample specified in example and scroll over the URL you'll notice the Dynamic ID value coming to each URL
If you look at the code & sample specified in example and scroll over the URL you'll notice the Dynamic ID value coming to each URL
ASKER
it does not work as the way you said.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<asp:hyperlinkfield DataNavigateUrlFields="Pri
DataNavigateUrlFormatStrin
DataTextField="DisplayFiel
Here's Code & Example of this technique:
http://authors.aspalliance.com/aspxtreme/shared/viewsrc.aspx?path=/aspxtreme/sys/web/ui/webcontrols/demos/GridViewHyperLinkField.aspx.src