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. Unable To maintain Page State

Unable To maintain Page State

Scheduled Pinned Locked Moved ASP.NET
javascript
4 Posts 3 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.
  • M Offline
    M Offline
    mharoonkhan
    wrote on last edited by
    #1

    function popitup(url) { newwindow=window.open(url,'name','height=200,width=150'); if (window.focus) {newwindow.focus()} return false; } hi i have a two aspx pages page1.aspx and page2.aspx on each page there is a link which open a new window using above javascript, but i want to know the previous page information eighter it open using page1.aspx page or page2.aspx page. request object is null, so i'm unable to identify.

    KnightGuy

    L P 2 Replies Last reply
    0
    • M mharoonkhan

      function popitup(url) { newwindow=window.open(url,'name','height=200,width=150'); if (window.focus) {newwindow.focus()} return false; } hi i have a two aspx pages page1.aspx and page2.aspx on each page there is a link which open a new window using above javascript, but i want to know the previous page information eighter it open using page1.aspx page or page2.aspx page. request object is null, so i'm unable to identify.

      KnightGuy

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can access controls of parent page using window.opener.document.getElementById. So by using it you can access parent page and do communication between child and parent page. For more information refer this[^] link. HTH

      Jinal Desai - LIVE Experience is mother of sage....

      1 Reply Last reply
      0
      • M mharoonkhan

        function popitup(url) { newwindow=window.open(url,'name','height=200,width=150'); if (window.focus) {newwindow.focus()} return false; } hi i have a two aspx pages page1.aspx and page2.aspx on each page there is a link which open a new window using above javascript, but i want to know the previous page information eighter it open using page1.aspx page or page2.aspx page. request object is null, so i'm unable to identify.

        KnightGuy

        P Offline
        P Offline
        Prosanta Kundu online
        wrote on last edited by
        #3

        If you want to know in server side then pass a query string value ( ex: page1.aspx?ref=page2) and get the querystring value in server side using Request.QueryString["ref"]. Hope this will solve ur problem.

        M 1 Reply Last reply
        0
        • P Prosanta Kundu online

          If you want to know in server side then pass a query string value ( ex: page1.aspx?ref=page2) and get the querystring value in server side using Request.QueryString["ref"]. Hope this will solve ur problem.

          M Offline
          M Offline
          mharoonkhan
          wrote on last edited by
          #4

          Dear, the request object is null.

          KnightGuy

          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