Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Can I view style in .Net codebehind?

Back to Forum: Tech Off
  • User profile image
    qwert231

    I have images that I set visible/hidden through javascript. When I'm all done with a group of images, I want .Net to recognize which ones are visible and which ones aren't. I'm having trouble doing this.

  • User profile image
    Maurits

    Create some hidden form inputs
    <input type="hidden" name="photo1visible" value="0">

    to shadow the visibility state of the photos.

    When you make Photo 1 visible via javascript, also set the value of the corresponding hidden input to 1

    When you make Photo 1 invisible again, also set the value of the corresponding hidden input back to 0

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.