Concerned with footerrow in gridview
<p>I have following gridview.</p>

<pre><code> &lt;asp:GridView ID="gvMarks" runat="server" AutoGenerateColumns="false" 
   DataKeyNames="MarkId" Width="80%" onrowdatabound="gvMarks_RowDataBound" 
   ShowFooter="True" onrowcommand="gvMarks_RowCommand"&gt;
    &lt;Columns&gt;
        &lt;asp:TemplateField&gt;
            &lt;HeaderTemplate&gt;
                SubjectCode
            &lt;/HeaderTemplate&gt;
          &lt;FooterTemplate&gt;
            &lt;asp:DropDownList ID="dlSubjectCode" runat="server" width="100px" AutoPostBack="false"&gt;&lt;/asp:DropDownList&gt;
          &lt;/FooterTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:TemplateField&gt;
            &lt;HeaderTemplate&gt;
               Mark
            &lt;/HeaderTemplate&gt;
              &lt;FooterTemplate&gt;
                &lt;asp:TextBox ID="txtInternalMark" runat="server" &gt;&lt;/asp:TextBox&gt;
            &lt;/FooterTemplate&gt;
        &lt;/asp:TemplateField&gt;

        &lt;asp:TemplateField&gt;
            &lt;HeaderTemplate&gt;
              Insert
            &lt;/HeaderTemplate&gt;
            &lt;FooterTemplate&gt;
                &lt;asp:LinkButton ID="lnkInsert" runat="server" Text="Insert" 
                    CommandName="Insert" &gt;&lt;/asp:LinkButton&gt;
            &lt;/FooterTemplate&gt;
        &lt;/asp:TemplateField&gt;
    &lt;/Columns&gt;
    &lt;FooterStyle BackColor="White" ForeColor="#000066" /&gt;
    &lt;RowStyle ForeColor="#000066" /&gt;
    &lt;SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /&gt;
    &lt;PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" /&gt;
    &lt;HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" /&gt;
&lt;/asp:GridView&gt;
</code></pre>

<p>If i enter some value in txtInternalMark,iam not geting its value in code behind.Iam geting the value as "".Iam using following code</p>

<pre><code>if (e.CommandName.Equals("Insert"))
{
    TextBox txtInternalMark = (TextBox)gvMarks.FooterRow.FindControl("txtInternalMark");
    lblMessage.Text = txtInternalMark .Text;
}
</code></pre>

<p>Can anybody help to get the value of textbox in codebehind.</p>
