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 access the changes in style.display property by Javascript in code behind

How to access the changes in style.display property by Javascript in code behind

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

    Hi, I am using the java script to show hide the control. I am using the style.display property in javascript. I want access the changes in the style.display property in code behind. The changes are not refelected on server side. Please suggest me, how to access the changes in style.display in code behind

    Y 1 Reply Last reply
    0
    • P prashantkharade

      Hi, I am using the java script to show hide the control. I am using the style.display property in javascript. I want access the changes in the style.display property in code behind. The changes are not refelected on server side. Please suggest me, how to access the changes in style.display in code behind

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      prashantkharade wrote:

      I want access the changes in the style.display property in code behind.

      Why do you want to do that? Showing/hiding of control is client side functionality. You can not access the state from the server. You can save the state on hidden field and pass it to the server though!

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      P 1 Reply Last reply
      0
      • Y Yusuf

        prashantkharade wrote:

        I want access the changes in the style.display property in code behind.

        Why do you want to do that? Showing/hiding of control is client side functionality. You can not access the state from the server. You can save the state on hidden field and pass it to the server though!

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        P Offline
        P Offline
        prashantkharade
        wrote on last edited by
        #3

        Hi, When i am clearing the control values using java script, but after post back wehen i access control values it gives me the previous values.(the valuses which are set on previous page load.) Please, Let me the reason for it and the means of acces the modified control values using javascript after PostBack. Thanx in advance. Regards, Prashant.

        P 1 Reply Last reply
        0
        • P prashantkharade

          Hi, When i am clearing the control values using java script, but after post back wehen i access control values it gives me the previous values.(the valuses which are set on previous page load.) Please, Let me the reason for it and the means of acces the modified control values using javascript after PostBack. Thanx in advance. Regards, Prashant.

          P Offline
          P Offline
          PauloCastilho
          wrote on last edited by
          #4

          Why don´t you use asp:panel instead of <div>? The Panel control generate the same code ( <div></div> ) and can be manipulated in code behind.

          modified on Friday, April 17, 2009 6:11 PM

          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