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. How to Pass value between pages using JavaScript?

How to Pass value between pages using JavaScript?

Scheduled Pinned Locked Moved ASP.NET
questionjavascriptdata-structurestutorial
2 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.
  • A Offline
    A Offline
    adkalavadia
    wrote on last edited by
    #1

    I want to pass my array in javascript from Page1.aspx to page2.aspx. Actually on my Page1, there is a one JavaScript function which get status of my JavaScript Panel(hidden/Shown) and i have to set the same status of that JavaScript Panel on Page2. Also this javascript panel is in Datalist control on both page. How can i pass the status of my panel on Page2? :)

    !- F - R - I - E - N - D - S -!

    Ankur Kalavadia

    P 1 Reply Last reply
    0
    • A adkalavadia

      I want to pass my array in javascript from Page1.aspx to page2.aspx. Actually on my Page1, there is a one JavaScript function which get status of my JavaScript Panel(hidden/Shown) and i have to set the same status of that JavaScript Panel on Page2. Also this javascript panel is in Datalist control on both page. How can i pass the status of my panel on Page2? :)

      !- F - R - I - E - N - D - S -!

      Ankur Kalavadia

      P Offline
      P Offline
      PunkIsNotDead
      wrote on last edited by
      #2

      why don't you send the value in a QueryString? like Page2.aspx?VisiblePanel=false and recive it in javascript

      var visiblePnl = Request.QueryString("VisiblePanel");

      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