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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Open a .html page from a button

Open a .html page from a button

Scheduled Pinned Locked Moved ASP.NET
html
7 Posts 4 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.
  • G Offline
    G Offline
    gunnar66
    wrote on last edited by
    #1

    Hi How do you open a .html page in a new window. I want to do this from a button in my aspx file. I am useing Web Matrix. thx

    M V 2 Replies Last reply
    0
    • G gunnar66

      Hi How do you open a .html page in a new window. I want to do this from a button in my aspx file. I am useing Web Matrix. thx

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Hi there. You may want to consider using a client-side javascript button for this:

      <input type="button" value="New Page"
      onclick="window.open('http://www.codeproject.com', 'newWindow');" />

      G M 2 Replies Last reply
      0
      • G gunnar66

        Hi How do you open a .html page in a new window. I want to do this from a button in my aspx file. I am useing Web Matrix. thx

        V Offline
        V Offline
        V 0
        wrote on last edited by
        #3

        If I'm not mistaken you can't open new windows Server side, you have to do it client side. (script) "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

        1 Reply Last reply
        0
        • M Mike Ellison

          Hi there. You may want to consider using a client-side javascript button for this:

          <input type="button" value="New Page"
          onclick="window.open('http://www.codeproject.com', 'newWindow');" />

          G Offline
          G Offline
          gunnar66
          wrote on last edited by
          #4

          Ok. Thank you

          1 Reply Last reply
          0
          • M Mike Ellison

            Hi there. You may want to consider using a client-side javascript button for this:

            <input type="button" value="New Page"
            onclick="window.open('http://www.codeproject.com', 'newWindow');" />

            M Offline
            M Offline
            minhpc_bk
            wrote on last edited by
            #5

            Hi Mike, How are you? I haven't seen you for at least ....2 years (2004 & 2005). :laugh:

            M 1 Reply Last reply
            0
            • M minhpc_bk

              Hi Mike, How are you? I haven't seen you for at least ....2 years (2004 & 2005). :laugh:

              M Offline
              M Offline
              Mike Ellison
              wrote on last edited by
              #6

              ;P I'm doing good - enjoyed the holidays, and got a new CP article up. (I was working on it enough that I sortof forgot about the forums for a while :cool: )

              M 1 Reply Last reply
              0
              • M Mike Ellison

                ;P I'm doing good - enjoyed the holidays, and got a new CP article up. (I was working on it enough that I sortof forgot about the forums for a while :cool: )

                M Offline
                M Offline
                minhpc_bk
                wrote on last edited by
                #7

                I guess so, well-done Mike ! I'm eager to read that. ;P

                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