ViewState: How can I set the other buttons viewstate settings.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • truezplaya
    New Member
    • Jul 2007
    • 115

    #1

    ViewState: How can I set the other buttons viewstate settings.

    Hey

    I am currently working on a project that requires me to create an x amount of buttons dynamically. I have developed a custom link button that adopts a style etc etc.

    I have inherited from this button and i have then added a property that basically holds a bool value that states if it is currently togged on. Similar to a check box either true for ticked or false for not ticked.

    Now when i click on one button the viewstate value is set correctly to true and a style applied however i need to update the other buttons viewstate to false so the same CSS class isn't applied

    Could anyone point me in the right direction.

    Thanks in advanced
Working...