title: How to reference textbox from gridview in my codebehind C#
body: <p>All the examples I've found have not been helpful.  I have a textbox in the footer of my gridview called "txtMyCoverage".  In my codebehind I just want to reference that textbox  to say </p>
  
  <pre><code>a = txtMyCoverage.Text;
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>gvLimit.FindControl("txtMyCoverage").ToString();
  </code></pre>
  
  <p>but it comes back null reference.  Thanks for any help!</p>
  
  <p>Here is my grid</p>
  
  <pre><code>&lt;asp:GridView Width="100%" ID="gvLimits"
  CssClass="gridView no_min_width"
  runat="server"
  AutoGenerateColumns="False"
  CellPadding="2" ShowFooter="true"
  DataKeyNames="PolicyLimitID, LimitID"
  HorizontalAlign="Center"
  OnRowDataBound="gvLimits_RowDataBound"&gt;
  &lt;RowStyle HorizontalAlign="Center" /&gt;
  &lt;Columns&gt;
      &lt;asp:TemplateField HeaderText="Coverage"&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="txtLimitLetter" runat="server" Width="20px" CssClass="center" Text='&lt;%# Bind("Limit.LimitLetter") %&gt;' Enabled="false" &gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
          &lt;FooterTemplate&gt;
              &lt;asp:TextBox ID="txtMyCoverage" runat="server" Width="50px" CssClass="center" &gt;&lt;/asp:TextBox&gt;
          &lt;/FooterTemplate&gt;
  
  &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>