Posted on: 7/5/2014 11:24:03 AM | Views : 375

Hi friends,
I have some checkboxes on my page, I'm storing into a "result" string variable
public string result;  whether check box checked or not, following code:
protected void CheckBox1_CheckedChanged(object sender, EventArgs e) { if (((CheckBox)sender).Checked) result += ((CheckBox)sender).Text + "&"; else result = result.Replace(((CheckBox)sender).Text + "&", ""); } when I want to show "result" into a lable it just show one time, next time what ever I do it does not care,
how do I rewrite this code with ViewState?? or anything u think will make it work

p.s I don't want to put label in place of result variable, I want to by clicking on the button only.

Go to the complete details ...