title: Textbox Inside GridView Inside UpdatePanel textchange Event not firing
body: <p>I have an UpdatePanel with a GridView. This GridView has a template column that is a textbox. The problem is that the textchange event does not fire for the textbox. </p>
  
  <p>Where am I wrong? </p>
  
  <p>Here is the code: </p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="updatepanelgridview.WebForm1" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
      &lt;asp:ScriptManager ID="scrManager" runat="server"&gt; 
  &lt;/asp:ScriptManager&gt; 
  &lt;asp:UpdatePanel ID="updPnl" runat="server"&gt; 
  &lt;ContentTemplate&gt; 
  &lt;asp:GridView ID="grdNumber" runat="server"&gt; 
  &lt;Columns&gt; 
  &lt;asp:TemplateField&gt; 
  &lt;ItemTemplate&gt; 
  
  &lt;asp:TextBox ID="txtNumber" runat="server" OnTextChanged="TextBox1_TextChanged"  AutoPostBack="true"&gt;&lt;/asp:TextBox&gt;
  &lt;/ItemTemplate&gt; 
  &lt;/asp:TemplateField&gt; 
  &lt;/Columns&gt; 
  
  &lt;Columns&gt; 
  &lt;asp:TemplateField&gt; 
  &lt;ItemTemplate&gt; 
  &lt;asp:DropDownList ID="ddlNumber" runat="server" OnSelectedIndexChanged="ddlNumber_SelectedIndexChanged" AutoPostBack="true" &gt; 
  
  &lt;asp:ListItem&gt;One&lt;/asp:ListItem&gt; 
  &lt;asp:ListItem&gt;Two&lt;/asp:ListItem&gt; 
  &lt;asp:ListItem&gt;Three&lt;/asp:ListItem&gt; 
  &lt;asp:ListItem&gt;For&lt;/asp:ListItem&gt; 
  &lt;/asp:DropDownList&gt; 
  
  &lt;/ItemTemplate&gt; 
  &lt;/asp:TemplateField&gt; 
  &lt;/Columns&gt; 
  &lt;/asp:GridView&gt; 
  &lt;/ContentTemplate&gt; 
  &lt;/asp:UpdatePanel&gt; 
  
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And here is the codebehind: </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Data;
  namespace updatepanelgridview
  {
      public partial class WebForm1 : System.Web.UI.Page
      {
          protected void Page_Load(object sender, EventArgs e)
          {
              if (!IsPostBack)
              {
                  DataTable dt = new DataTable();
                  dt.Rows.Add();
                  dt.Rows.Add();
                  dt.Rows.Add();
                  dt.Rows.Add();
  
                  grdNumber.DataSource = dt;
                  grdNumber.DataBind();
              }
          }
  
          protected void ddlNumber_SelectedIndexChanged(object sender, EventArgs e)
          {
  
          }
  
          protected void TextBox1_TextChanged(object sender, EventArgs e)
          {
  
          }
      }
  }
  </code></pre>
  
  <p>Here i use dropdownlist in second column which works proper but my textbox textchange event not getting fir please suggest what i am doing wrong?</p>