I want to build a running total as choices are made. All values are stored in cookies so multiple users won't interfere with each other. All is fine, but when the buuton is clicked to again go to this routine from a diffent button, the currentId cookie apears
to have been changed but actually retains the value from the first time through.
void btn_Click(object sender, EventArgs e)
{
// set current Id cookie to ""
Response.Cookies["currentId"].Value = "";
//find which button clicked
Button btn = (Button)sender;
char[] delim = { 'n' };
string[] strArr = btn.ID.Split(delim);
//set currentId cookie
Response.Cookies["currentId"].Value = strArr[1];
[do some s ...
Go to the complete details ...