title: GridView within an UpdatePanel - Get Updated Textbox values on button click
body: <p><strong>IGNORE THIS:</strong>
  <p> I was rebinding the grid in the Onload method.</p>
  
  <p><p>I have a grid view with some textboxes, which I have to wrap in a UpdatePanel Control. So it looks like this:</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="upDistribution" runat="server" OnLoad="upDistribution_OnLoad"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:GridView ID="gvDistributions" runat="server" AutoGenerateColumns="false"
              OnRowDataBound="gvDistributions_RowDataBound"
              CssClass="TallCells ContrastTable MaxWidth LeftHeaders"
              GridLines="Both" ShowFooter="True" style=""&gt;
              &lt;RowStyle HorizontalAlign="Left"  /&gt;
  
              &lt;EmptyDataTemplate&gt;
                  No pricing history data found.
              &lt;/EmptyDataTemplate&gt;
  
              &lt;Columns&gt;
                  &lt;asp:TemplateField HeaderText="PriceA"&gt;
                      &lt;ItemTemplate&gt;
  
                          &lt;asp:TextBox ID="txtPriceA" runat="server" /&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:TemplateField HeaderText="DistPrice"&gt;
                      &lt;ItemTemplate&gt;
  
                          &lt;asp:TextBox ID="txtDistPrice" runat="server" /&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>There is a button "Save" when I would like to get the value entered for the txtboxes.  If there is no UpdatePanel around the GV, i can can easily get the txtbox values like:</p>
  
  <pre><code>((TextBox)gvDistributions.Rows[0].Cells[0].FindControl("txtPriceA")).Text
  </code></pre>
  
  <p>But when, the GridView is wrapped with UpdatePanel, the above statement returns the value that was set on the page load.  </p>
  
  <p>How can I get the value of the text box without getting rid of the updatePanel.  I need the update panel, because the number of rows, and dates are dependent on another variable in another user control. </p>