如何更换cookies中的值呢?
我在Page_Load事件中把cookies的值写到页面中:
txt_address.Value = Request.Cookies["customer"]["address"].ToString();
现在如果页面中一个文本框txt_address中的值变了的话,我想Cookies中的值也变,我在一个button_click事件中这样写:
Response.Cookies["customer"]["address"] = txt_address.Value;
但是分步执行时txt_address的值都不能改变,cookies的值也就不能变了,这是为什么呢?