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. close window and redirect to another site

close window and redirect to another site

Scheduled Pinned Locked Moved ASP.NET
comsysadmintutorialquestion
5 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.
  • B Offline
    B Offline
    brsecu
    wrote on last edited by
    #1

    I want to close my page and open another url outside of my local pages. example page1.aspx(close) www.google.com(open) when i use the server.Transfer it wont do it? Thanks in advance.

    F 1 Reply Last reply
    0
    • B brsecu

      I want to close my page and open another url outside of my local pages. example page1.aspx(close) www.google.com(open) when i use the server.Transfer it wont do it? Thanks in advance.

      F Offline
      F Offline
      Fred_Smith
      wrote on last edited by
      #2

      you can't server.transfer to a file outside of your web app

      brsecu wrote:

      I want to close my page and open another url outside of my local pages.

      ?? ...just link to it...

      B 1 Reply Last reply
      0
      • F Fred_Smith

        you can't server.transfer to a file outside of your web app

        brsecu wrote:

        I want to close my page and open another url outside of my local pages.

        ?? ...just link to it...

        B Offline
        B Offline
        brsecu
        wrote on last edited by
        #3

        Yes but how. I know it seems like a simple question but I want to do it out of the aspx.cs code not html. How do i link to it.

        F 1 Reply Last reply
        0
        • B brsecu

          Yes but how. I know it seems like a simple question but I want to do it out of the aspx.cs code not html. How do i link to it.

          F Offline
          F Offline
          Fred_Smith
          wrote on last edited by
          #4

          Response.Redirect("http://www.google.com"); for example... is that what you want?

          B 1 Reply Last reply
          0
          • F Fred_Smith

            Response.Redirect("http://www.google.com"); for example... is that what you want?

            B Offline
            B Offline
            brsecu
            wrote on last edited by
            #5

            Yeah. Thanks a million.

            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