Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Opening the hyperlink in a pop up window from grid view

Opening the hyperlink in a pop up window from grid view

Scheduled Pinned Locked Moved ASP.NET
databasehelpcss
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    just3ala2
    wrote on last edited by
    #1

    Dear all, I managed to return a full hyperlink with query string values from a database as a string and i bound it to a grid view HyperLinkField My problem is that i want it to open as a pop up when clicked not to navigate withing the same page I know i should use the window.open javascr5ipt function but i don't know where should i put it I would appreciate any help or hint :)

    Best Regards 3ala2 :)

    K 1 Reply Last reply
    0
    • J just3ala2

      Dear all, I managed to return a full hyperlink with query string values from a database as a string and i bound it to a grid view HyperLinkField My problem is that i want it to open as a pop up when clicked not to navigate withing the same page I know i should use the window.open javascr5ipt function but i don't know where should i put it I would appreciate any help or hint :)

      Best Regards 3ala2 :)

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      If you are returning an anchor tag then you just need to set the target to _blank Hope that helps. Ben

      J 1 Reply Last reply
      0
      • K kubben

        If you are returning an anchor tag then you just need to set the target to _blank Hope that helps. Ben

        J Offline
        J Offline
        just3ala2
        wrote on last edited by
        #3

        i want a pop up window not a new window :)

        Best Regards 3ala2 :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups