c# - Cookies Response Issue With AutoPostBack -
I did not know how to keep the title because I could not describe the problem, here is the problem. . (This is the only problem in the short term) I have to say that two checkboxes set for autopost back = true secured zero cbPop_CheckedChanged ( Object sender, event ergues e) {response. Cookies ["User Restrictions"]. Value = request Cookies ["User Reference"]. Value + "1"; Label1.Text = Request.Cookies ["UserPreferences"]. Value.Length.ToString (); } Secure Zero cbDown_CheckedChanged (Object Sender, EventArgs e) {Response.Cookies ["UserPreferences"]. Value = Request.Cookies ["UserPreferences"]. Value + "2"; Label1.Text = Request.Cookies ["UserPreferences"]. Value.Length.ToString (); } What do I expect here: I hope the text of the label will show "1" when I check the first checkbox And to show "2" when I second check box What do I get here: I get "1" twic...