Solved

ASP.NET Link on a column in a Gridview

Posted on 2013-06-19
2
348 Views
Last Modified: 2013-06-19
How do I convert a column in a gridview to a link?
0
Comment
Question by:patriotpacer
2 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 39259645
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
 

Author Closing Comment

by:patriotpacer
ID: 39259671
Thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question