title: why the size of List in not incrementing
body: <p>I create dynamically checkboxes all of them with assigned checkedChanged event, which on postback  I recreate and everything is working except one thing;</p>
  
  <ul>
  <li>I should  save the value of checked checkboxes in a List . But it seems that on each postBack event (every time I check a checkbox) the elements of the list are lost although <code>myche</code> is a global variable of type List ; </li>
  </ul>
  
  <p>lblProba.Text +="in if clause; element count="+ myche.Count.ToString();</p>
  
  <p>gives me  <strong>1</strong> every time I check a checkbox</p>
  
  <pre><code>protected void checkChanged(object sender, EventArgs e)
  {
          CheckBox chk = (CheckBox)sender;
          if (chk.Checked)
          {
              myche.Add(chk.InputAttributes["value"].ToString());
              lblProba.Text +="in if clause; element count="+ myche.Count.ToString();
  
  
          }
  
          else 
          {
              lblProba.Text += "enering else;element count:"+myche.Count.ToString();
  
  
  
  
          }
  
              lblProba.Text += "Final length" + myche.Count.ToString();
              for (int t = 0; t &lt; myche.Count; t++)
          { 
              Session["chk"]+= myche[t]; 
  
          }
  
  
  }
  </code></pre>