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 new window using shortcut key

Opening new window using shortcut key

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
4 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.
  • K Offline
    K Offline
    Karan_TN
    wrote on last edited by
    #1

    hai, currently i m using asp.net 2.0 (C#) i m trying to open a new popup window (or window) so as to display the project developer name and his information. But this has to be popup'ed only when user press some key combinations (say.. ctrl+d). i tried this by assigning accesskey to a button and redirected. but while i hide that button the shortcut does'nt work.. is there any other way to achieve it? help me.... - Karan

    M 1 Reply Last reply
    0
    • K Karan_TN

      hai, currently i m using asp.net 2.0 (C#) i m trying to open a new popup window (or window) so as to display the project developer name and his information. But this has to be popup'ed only when user press some key combinations (say.. ctrl+d). i tried this by assigning accesskey to a button and redirected. but while i hide that button the shortcut does'nt work.. is there any other way to achieve it? help me.... - Karan

      M Offline
      M Offline
      m khansari
      wrote on last edited by
      #2

      Hi How do you hide the button? if you set Visible to false the button's does not be inserted into page you should hide the button using javascript code and css property.

      Mohammad Khansari

      K 1 Reply Last reply
      0
      • M m khansari

        Hi How do you hide the button? if you set Visible to false the button's does not be inserted into page you should hide the button using javascript code and css property.

        Mohammad Khansari

        K Offline
        K Offline
        Karan_TN
        wrote on last edited by
        #3

        how to do this? i found we can hide the button using

        document.getElementById('Button1').style.visibility='hidden';

        but i need to use this in page load in ASCX page. how to use it.

        M 1 Reply Last reply
        0
        • K Karan_TN

          how to do this? i found we can hide the button using

          document.getElementById('Button1').style.visibility='hidden';

          but i need to use this in page load in ASCX page. how to use it.

          M Offline
          M Offline
          m khansari
          wrote on last edited by
          #4

          It's better to use display stead of visibility insert following code in Page_Load hide the button

          this.Button1.Style.Add("display", "none");

          show the button

          this.Button1.Style.Add("display", "inline");

          hope to be useful for you

          Mohammad Khansari

          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