Custom hyperlink in gridview

Posted on 2006-05-08
Last Modified: 2012-06-22
Hi experts

i need to create some hyperlinkfield
but i wish to launch a popup (no adress bar, cannot resize the popup) when the user click on the hyperlink

in fact i just want to call a javascript function with the hyperlinkfield of the gridview and send some value of the gridview to the javascript function

can you show me how to do that?

Question by:Dnx_7
    LVL 10

    Accepted Solution


    see this link from codeproject

    which shown how to open popup window from grid and pass value

    LVL 2

    Author Comment

    thanks for your link but i have to send a value of a hidden column

    how can you access this hidden column of the gridview?

    LVL 10

    Expert Comment


    Yes surely you can access the hidden column

    according to type of the control you have set Cast it like

    Label lblID = (Label)e.Item.FindControl("dgLabel0");

    this is already shown in example

    LVL 2

    Author Comment

    Great job!

    thank for your quick support!


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, 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…

    733 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

    24 Experts available now in Live!

    Get 1:1 Help Now