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

window.open

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 2 Posters 1 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.
  • S Offline
    S Offline
    subrata jana
    wrote on last edited by
    #1

    I am opening a window from two different pages. How can i know which page opened this window. Due to some technical issues i cannot use querystring,session,cache,application variable. Is there any other way pls suggest.

    G 1 Reply Last reply
    0
    • S subrata jana

      I am opening a window from two different pages. How can i know which page opened this window. Due to some technical issues i cannot use querystring,session,cache,application variable. Is there any other way pls suggest.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Check the referrer.

      --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

      S 1 Reply Last reply
      0
      • G Guffa

        Check the referrer.

        --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

        S Offline
        S Offline
        subrata jana
        wrote on last edited by
        #3

        I check referer . For window.open it is null. for "href" it shows some value.

        G 1 Reply Last reply
        0
        • S subrata jana

          I check referer . For window.open it is null. for "href" it shows some value.

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

          I see. Then you can use window.opener to access the parent window.

          --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

          S 1 Reply Last reply
          0
          • G Guffa

            I see. Then you can use window.opener to access the parent window.

            --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

            S Offline
            S Offline
            subrata jana
            wrote on last edited by
            #5

            window.opener is what i am doing now. But thats in js we need to find it out in code behind. I tried ASP.net Profile but no luck. Can u pls help me a little more. Thanks a lot.

            G 1 Reply Last reply
            0
            • S subrata jana

              window.opener is what i am doing now. But thats in js we need to find it out in code behind. I tried ASP.net Profile but no luck. Can u pls help me a little more. Thanks a lot.

              G Offline
              G Offline
              Guffa
              wrote on last edited by
              #6

              subrata.jana wrote:

              But thats in js we need to find it out in code behind.

              You can't do that. If there is nothing in referrer, then there is nothing that is sent to the server that reveals from where the window was opened. The concept of the browser having separate windows only exists in the browser. What is sent to the server is just a request for a page, there is no information that tells where (or even if) the page will be displayed.

              --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

              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