Question : Unable to save state of check box in datalist

Hi

I have a data list in which I have a check box and a label

There is a button outside the data list.

If the checkbox is checked then on button click it becomes unchecked.

How can I  save the state of the check box on button click.

Answer : Unable to save state of check box in datalist

My guess is you are pre-populating or redatabinding every postback. Simply put if(!Page.IsPostBack){} around the code where you pre-populate the checkbox
Random Solutions  
 
programming4us programming4us