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. General Programming
  3. C#
  4. web development with c#

web development with c#

Scheduled Pinned Locked Moved C#
questioncsharpasp-net
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.
  • C Offline
    C Offline
    ckruger
    wrote on last edited by
    #1

    How can I open a web page(url string) from a web forms button that I've placed on my web.aspx application?

    A 1 Reply Last reply
    0
    • C ckruger

      How can I open a web page(url string) from a web forms button that I've placed on my web.aspx application?

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      Well you can do: this.Response.Redirect(name of web page / file to download etc) or this.Server.Transfer(url or whatever - will not work when linking to a file for downloading etc.) The first one is better, but with the second, it doesnt change the url in the address bar on the browser so if you wanted to keep the full url a secret...

      C 1 Reply Last reply
      0
      • A Anthony Mushrow

        Well you can do: this.Response.Redirect(name of web page / file to download etc) or this.Server.Transfer(url or whatever - will not work when linking to a file for downloading etc.) The first one is better, but with the second, it doesnt change the url in the address bar on the browser so if you wanted to keep the full url a secret...

        C Offline
        C Offline
        ckruger
        wrote on last edited by
        #3

        Thank you! this.Response.Redirect(name of web page) works well, but I need it to open in its own window. I think my prasing was incorrect...

        A 1 Reply Last reply
        0
        • C ckruger

          Thank you! this.Response.Redirect(name of web page) works well, but I need it to open in its own window. I think my prasing was incorrect...

          A Offline
          A Offline
          Anthony Mushrow
          wrote on last edited by
          #4

          Well, i asked that a short while back as well, you'll have to use a html button and in the onclick bit put: window.open("website url","one_word_id_type_thing","resizable=0,width=550,height=400") resizable=0 means you cant resize it 1 means that you can. Just thought, to open a page in a new window, and keep the web forms button, add: using System.Diagnostics; then in the button put: Process.Start("website url"); that should open it in a new window.

          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