Solved

hyperlink in datagrid

Posted on 2004-09-03
4
237 Views
Last Modified: 2010-04-23
hi

   I want to use a hyperlink column in datagrid. I know i have to use template column for this. Clicking on this link should redirect to another page along with one parameter in query string.

wht is the exact code for this.

thanks
sandeep
0
Comment
Question by:sandeep437
4 Comments
 
LVL 3

Expert Comment

by:jetforce
ID: 11971266
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 20 total points
ID: 11976418
       <asp:TemplateColumn HeaderText="au_fname" SortExpression="au_fname">
          <ItemTemplate>
            <asp:NavigateUrl runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "somefield") %>' NavigateUrl='yoururlstring?param=<%# DataBinder.Eval(Container.DataItem, "someotherfield") %>'/>
          </ItemTemplate>
        </asp:TemplateColumn>

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

16 Experts available now in Live!

Get 1:1 Help Now