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. Hiding values on page

Hiding values on page

Scheduled Pinned Locked Moved ASP.NET
questionjavascriptcssdatabasehelp
5 Posts 4 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
    MacIntyre
    wrote on last edited by
    #1

    I populate the aspx page from the database and gridview that is selected. Not all data is editable so some items are not used to populate the editable page. Alas, there in lies the crux of the problem. I need one of the values from the selected row in the grid to be held for later use in a client side javascript. My client does not want to see it on the aspx page. My programming partner initially put it in a textbox.visible = false. Appearently that 'invisible' field is also invisible to javascript. Other developers in the past have hinted at 'hiding' values on the aspx page. How do I do that? Thanks in advance.. chuck.

    L J V 3 Replies Last reply
    0
    • M MacIntyre

      I populate the aspx page from the database and gridview that is selected. Not all data is editable so some items are not used to populate the editable page. Alas, there in lies the crux of the problem. I need one of the values from the selected row in the grid to be held for later use in a client side javascript. My client does not want to see it on the aspx page. My programming partner initially put it in a textbox.visible = false. Appearently that 'invisible' field is also invisible to javascript. Other developers in the past have hinted at 'hiding' values on the aspx page. How do I do that? Thanks in advance.. chuck.

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

      MacIntyre wrote:

      I need one of the values from the selected row in the grid to be held for later use in a client side javascript.

      How about puttin' it in a cookie?

      Bastard Programmer from Hell :suss:

      M 1 Reply Last reply
      0
      • L Lost User

        MacIntyre wrote:

        I need one of the values from the selected row in the grid to be held for later use in a client side javascript.

        How about puttin' it in a cookie?

        Bastard Programmer from Hell :suss:

        M Offline
        M Offline
        MacIntyre
        wrote on last edited by
        #3

        Good solution except manager says no to cookies.... Thanks..

        1 Reply Last reply
        0
        • M MacIntyre

          I populate the aspx page from the database and gridview that is selected. Not all data is editable so some items are not used to populate the editable page. Alas, there in lies the crux of the problem. I need one of the values from the selected row in the grid to be held for later use in a client side javascript. My client does not want to see it on the aspx page. My programming partner initially put it in a textbox.visible = false. Appearently that 'invisible' field is also invisible to javascript. Other developers in the past have hinted at 'hiding' values on the aspx page. How do I do that? Thanks in advance.. chuck.

          J Offline
          J Offline
          jkirkerx
          wrote on last edited by
          #4

          .visible tells the server to not render the tag. Use the css tag .css = "display: none;"

          1 Reply Last reply
          0
          • M MacIntyre

            I populate the aspx page from the database and gridview that is selected. Not all data is editable so some items are not used to populate the editable page. Alas, there in lies the crux of the problem. I need one of the values from the selected row in the grid to be held for later use in a client side javascript. My client does not want to see it on the aspx page. My programming partner initially put it in a textbox.visible = false. Appearently that 'invisible' field is also invisible to javascript. Other developers in the past have hinted at 'hiding' values on the aspx page. How do I do that? Thanks in advance.. chuck.

            V Offline
            V Offline
            vvashishta
            wrote on last edited by
            #5

            Use Hiiden Variables for this sake.. Work on .Value Property of hiddenvariable

            - Happy Coding - Vishal Vashishta

            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