Solved

ASP.NET Link on a column in a Gridview

Posted on 2013-06-19
2
345 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 39

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now