title: AJAX Trigger With TextBox Control
body: <p>When I put "TextBox" Control with ID "MessageTextBox" in "Triggers" in UpdatePanel with ID "UpdatePanel2", this "TextBox" with ID "MessageTextBox" doesn't want to postback through AJAX. The "Button" Control with ID "MessageButton" work fine, but this TextBox doesn't want to work. Why ? </p>
  
  <pre><code> &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;&lt;/asp:ScriptManager&gt;
      &lt;br /&gt;
  
           &lt;asp:TextBox ID="MessageTextBox" runat="server" AutoPostBack="true" Height="150px" Width="400px"&gt;&lt;/asp:TextBox&gt;
  
      &lt;br /&gt;    
          &lt;asp:Button ID="MessageButton" runat="server" Text="Send" OnClick="MessageButton_Click" /&gt;
      &lt;br /&gt;
      &lt;br /&gt;
      &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
          &lt;Triggers&gt;
              &lt;asp:AsyncPostBackTrigger ControlID="MessageButton" /&gt;
              &lt;asp:AsyncPostBackTrigger ControlID="MessageTextBox" /&gt;
          &lt;/Triggers&gt;
          &lt;ContentTemplate&gt;
               &lt;asp:DataList ID="ChatDataList" runat="server" &gt;
          &lt;HeaderTemplate&gt;
              &lt;table style="border:1px solid red"&gt;
          &lt;/HeaderTemplate&gt;
          &lt;ItemTemplate&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;asp:Label ID="lblRaterName" runat="server" Text='&lt;%#      Eval("Text")%&gt;'&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                  &lt;/tr&gt;
          &lt;/ItemTemplate&gt;                 
          &lt;FooterTemplate&gt;
              &lt;/table&gt;
          &lt;/FooterTemplate&gt;
      &lt;/asp:DataList&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p><b>When I wrap this "TextBox" Control like this all work but I like more the other way with triggers(the way which is not working like the code above):</b> </p>
  
  <pre><code>    &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
          &lt;ContentTemplate&gt;
               &lt;asp:TextBox ID="MessageTextBox" runat="server" Height="150px" Width="400px"&gt;&lt;/asp:TextBox&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  </code></pre>