Author: WillGonz | Posted on: 1/14/2010 3:26:30 PM | Views : 367

I am using Attributes.Add("style", "color:green") with some checkboxlists and radiobuttonlists.  When I click one of the checkboxes and I do the autopostback the attributes clear out.  So I would think someone already has a sub to fix this.  Something like:
 
SaveAttributes(checkboxlist1) or SaveAttributes() 'which would loop though all controls and save the state.
 
and then on pageload it would have
LoadAttributes(checkboxlist1) or LoadAttributes() 'which would loop through all controls and restore the state.
 
 
...

Go to the complete details ...