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. passing values to another window

passing values to another window

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

    hi, i am having an application with two web pages.one page contains button ,on button click iam calling java script to open 2nd window .window.open("2nd.aspx").i want to pass values to 2nd window .how to pass values.

    kamalnath

    P 1 Reply Last reply
    0
    • N nannapanenikamalnath

      hi, i am having an application with two web pages.one page contains button ,on button click iam calling java script to open 2nd window .window.open("2nd.aspx").i want to pass values to 2nd window .how to pass values.

      kamalnath

      P Offline
      P Offline
      P S Pundeer
      wrote on last edited by
      #2

      you can use 1. query string with the new window url. 2. session variables I prefer first one.

      N 1 Reply Last reply
      0
      • P P S Pundeer

        you can use 1. query string with the new window url. 2. session variables I prefer first one.

        N Offline
        N Offline
        nannapanenikamalnath
        wrote on last edited by
        #3

        hi, ok,then how to get that query string values in 2nd page

        kamalnath

        _ 1 Reply Last reply
        0
        • N nannapanenikamalnath

          hi, ok,then how to get that query string values in 2nd page

          kamalnath

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          through request object. string str = Request.QueryString["var_Name"].ToString();

          Best Regards, Apurva Kaushal

          N 1 Reply Last reply
          0
          • _ _AK_

            through request object. string str = Request.QueryString["var_Name"].ToString();

            Best Regards, Apurva Kaushal

            N Offline
            N Offline
            nannapanenikamalnath
            wrote on last edited by
            #5

            ok , i got it.thank u.

            kamalnath

            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