Print Page | Close Window

Setting a link inside a datagrid

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2844
Printed Date: 29 March 2026 at 5:17am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Setting a link inside a datagrid
Posted By: pnp!
Subject: Setting a link inside a datagrid
Date Posted: 19 May 2003 at 1:15pm

I've a datagrid (ie:)

NAME  AGE   GOTOLINK

Pablo 25 go to info --> when you press I want to go to: info.aspx?name=pablo&age=25
jose 45 go to info --> when you press I want to go to: info.aspx?name=jose&age=45


How can I make that kind of link?
(the one who have the name and the age (the two columns of my datagrid).

Thanks!

I've tried the following (inside the datagrid code in the .aspx) but as I bind ONE value of the DB I cant get only one value in my link(not two values)

<asp:HyperLinkColumn Text="Go to Info" DataNavigateUrlField="MyDBColumn" DataNavigateUrlFormatString="view.aspx?name={0}"></asp:HyperLinkColumn>

Thanks in advance!!!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net