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. accessing a variables in html

accessing a variables in html

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

    I am using c# in the code behind. Here is what I am trying to do and have done. -I created a variable (code behind) that I use to determine which aspx frame should be displayed -In the HTML code I basically used the statement below to select the appropriate frame. "> Selected is the variable I set in the code behind. It is derived from a session variable set in another aspx page. So.....Why does this not work? I would have thought I would have easy access to variables from the code behind file. Thanks in advance

    D 1 Reply Last reply
    0
    • B brian55

      I am using c# in the code behind. Here is what I am trying to do and have done. -I created a variable (code behind) that I use to determine which aspx frame should be displayed -In the HTML code I basically used the statement below to select the appropriate frame. "> Selected is the variable I set in the code behind. It is derived from a session variable set in another aspx page. So.....Why does this not work? I would have thought I would have easy access to variables from the code behind file. Thanks in advance

      D Offline
      D Offline
      DELETEUSER
      wrote on last edited by
      #2

      Selected is the variable I set in the code behind. It is derived from a session variable set in another aspx page... I'm not sure but may be it has something with the scope of the session or page life cycle...The reason being selected is derived from session variable set in another page...Would the session for page containing the selected variable expire if the page containing the session variable is loaded? Not sure this is something you want to look for.. ---------- user9 A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

      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