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. popup window

popup window

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
2 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.
  • R Offline
    R Offline
    Ritwik Sanyal
    wrote on last edited by
    #1

    I have a asp hyperlink control with its target property set as _blank. So, whenever the link is clicked the target page is opening in a new popup window. This is fine till now. But now I want to set the background color of this new window and still want to use asp hyperlink control. How can I achive this. Please help. Thanks in advance.:cool: I am a Software Developer using C# on ASP.NET.

    M 1 Reply Last reply
    0
    • R Ritwik Sanyal

      I have a asp hyperlink control with its target property set as _blank. So, whenever the link is clicked the target page is opening in a new popup window. This is fine till now. But now I want to set the background color of this new window and still want to use asp hyperlink control. How can I achive this. Please help. Thanks in advance.:cool: I am a Software Developer using C# on ASP.NET.

      M Offline
      M Offline
      Marcie Jones
      wrote on last edited by
      #2

      A hyperlink doesn't have access to change any properties on the page being opened directly. If you want that page to always have a certain background color, just edit the second page to have the color you want. If you need to change the color depending on how it's opened, you could have a QueryString parameter, and pass that in. For instance, have your hyperlink refer to: page2.aspx?bgcolor=pink Hope that helps, Datagrid Girl

      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