• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 384
  • Last Modified:

ASP.NET Link on a column in a Gridview

How do I convert a column in a gridview to a link?
0
patriotpacer
Asked:
patriotpacer
1 Solution
 
Kyle AbrahamsSenior .Net DeveloperCommented:
use a template column:

<ItemTemplate>
then bind to what you need to:
                                <asp:HyperLink runat="server" ID="hpl" NavigateUrl='<%#Eval("ID", "http://URL/MyWebPage.aspx?Id={0}")%>'
                                    Target="_blank"><%#Eval("ID")%></asp:HyperLink>
                            </ItemTemplate>
0
 
patriotpacerAuthor Commented:
Thanks!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now