title: ASP.Net 4.0 OnTextChanged event is not firing in ItemTemplate (ListView)
body: <p>Why I cant access OnTextChanged event? I already add AutoPostBack="true" in the textbox. Already tried to debug but still not firing.</p>
  
  <p>Below are the sample codes:</p>
  
  <p><strong>.ASPX Code</strong></p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
      &lt;ContentTemplate&gt;
           &lt;asp:ListView ID="ListView1" runat="server"&gt;
               &lt;ItemTemplate&gt;
                   &lt;asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged" AutoPostBack="true"&gt;&lt;/asp:TextBox&gt;
               &lt;/ItemTemplate&gt;
           &lt;/asp:ListView&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p><strong>.VB Code</strong></p>
  
  <pre><code>Protected Sub TextBox1_TextChanged(sender As Object, e As EventArgs)
      Dim TextBox1 As TextBox = DirectCast(sender, TextBox)
      Label1.Text = TextBox1.Text
  End Sub
  </code></pre>
  
  <p>What I'm missing here ?</p>
  
  <hr>
  
  <p><strong>Solved</strong></p>
  
  <p>I binding the datasource in Page Load. After changing to OnPreRender, its working!</p>