title: Problems with textbox text changed with C#
body: <p>I am having a problem with having the eventhandler textchanged method to work with an array of textboxes. The textboxes are generated through C# and not through ASP.NET.</p>
  
  <p>here is the TextBox code in C#:</p>
  
  <pre><code>int i = 1;
  foreach(string a in data)
  {
      i++;
      TextBox text = new TextBox();
      text.TextChanged += new EventHandler(updateone);
      text.AutoPostBack = true;
      text.ID = Convert.ToString(i);
  }
  </code></pre>
  
  <p>I tried out the  Text.AutoPostBack false and true and I had the same result. The updateone method is not even touched when I change the text of the textbox. When I do change the text 
  of the textbox it does update the website, but again the updateone method is not even touched in the code. Here is the updateone code:</p>
  
  <pre><code>protected void updateone(object sender, EventArgs e)
  {
      TextBox text = (TextBox)sender;
  }
  </code></pre>
  
  <p>I thank everyone for their help! I am just confused why this is not working... and also I have to use the C# method and not the ASP.NET way.</p>