Solved

hyperlink in datagrid

Posted on 2004-09-03
4
236 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

19 Experts available now in Live!

Get 1:1 Help Now