is there a option for a hyperlink in a table?

Posted on 2006-03-31
Last Modified: 2010-04-17

I have a table on FORM1 and one column in the table is a hyperlink. I want the hyperlink to go to another page when clicked, but when the new page closes I would like the Form1 to show again.  Does that make sense, kind of how works?  Below is the hyperlink column in my code.  It's in

 <asp:TemplateColumn HeaderText="Name">

                                     <asp:Hyperlink id="Hyperlink1"                              
                                     Text='<%# DataBinder.Eval(Container.DataItem, "name") %>'
                                     Runat=server />                                


Question by:jm76
    1 Comment
    LVL 9

    Accepted Solution

    why not use to get the new page in the first place?  You could then reference the opening page with window.opener on close to place focus on the opener again : ).

    ...if you don't want a postback:  

    <asp:Hyperlink id="Hyperlink1" NavigateUrl="javascript:OpenWindow()" ...etc

    <script language=javascript>
         function OpenWindow()
              detail_form ='idmd/ppddetailform.aspx', 'detail_form');

    ...or you can do the same thing from codebehind, if you don't mind a postback.  just change the link to a button (or linkbutton) and place the following within the button's click routine:

    RegisterClientScriptBlock("detailWindow", "<script language='javascript'>detail_form ='idmd/ppddetailform.aspx', 'detail_form'); detail_form.focus(); </script>")

    ...and then in the other form, something like:

    <script language="Javascript">
         function OnClose()


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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

    Suggested Solutions

    Title # Comments Views Activity
    Simple (?) problem getting Rainbow Folders to run 6 72
    EvenOdd challenge 10 67
    wordsWithout 49 64
    Fibonacci challenge 11 61
    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    A short article about a problem I had getting the GPS LocationListener working.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    779 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