how to get values from textbox which is in gridview Footer c#?
<p>like in title  + how to handle button click which button is in GridView Footer also?</p>

<p>file .aspx seems like this </p>

<pre><code>&lt;asp:GridView ID="GridView1" runat="server"
     AutoGenerateColumns="False" 
        CellPadding="4" DataKeyNames="id" EnableModelValidation="True" 
        ForeColor="#333333" GridLines="None" 
        onrowcancelingedit="GridView1_RowCancelingEdit1" 
        onrowediting="GridView1_RowEditing1" 
        onrowupdating="GridView1_RowUpdating1" AllowPaging="True" 
        onrowdeleting="GridView1_RowDeleting" 
        onpageindexchanging="GridView1_PageIndexChanging" Height="322px" 
        ShowFooter="True" onselectedindexchanged="GridView1_SelectedIndexChanged" &gt;
        &lt;AlternatingRowStyle BackColor="White" ForeColor="#284775" /&gt;
        &lt;Columns&gt;
            &lt;asp:CommandField ShowEditButton="True" /&gt;
            &lt;asp:BoundField DataField="id" HeaderText="ID" Visible="False" /&gt;
            &lt;asp:BoundField DataField="Name" HeaderText="Name" /&gt;
            &lt;asp:TemplateField&gt;
                &lt;FooterTemplate&gt;
                    &lt;asp:TextBox ID="txtName" runat="server" /&gt;
                &lt;/FooterTemplate&gt;
            &lt;/asp:TemplateField&gt;
            &lt;asp:BoundField DataField="LastName" HeaderText="LastName" /&gt;
            &lt;asp:TemplateField&gt;
                &lt;FooterTemplate&gt;
                    &lt;asp:TextBox ID="txtLastName" runat="server" /&gt;
                &lt;/FooterTemplate&gt;
            &lt;/asp:TemplateField&gt;
            &lt;asp:BoundField DataField="DriveLic" HeaderText="DriveLicense" /&gt;
            &lt;asp:TemplateField&gt;
                &lt;FooterTemplate&gt;
                    &lt;asp:TextBox ID="txtDriveLicense" runat="server" /&gt;
                &lt;/FooterTemplate&gt;
            &lt;/asp:TemplateField&gt;
            &lt;asp:BoundField DataField="country" HeaderText="Country" /&gt;
            &lt;asp:TemplateField&gt;
                &lt;FooterTemplate&gt;
                    &lt;asp:TextBox ID="txtWoj" runat="server" /&gt;
                &lt;/FooterTemplate&gt;
            &lt;/asp:TemplateField&gt;
            &lt;asp:CommandField ShowDeleteButton="True" /&gt;
            &lt;asp:TemplateField&gt;
                &lt;FooterTemplate&gt;
                    &lt;asp:Button ID="ButtonOK" Text="Confirm" runat="server" /&gt;
                &lt;/FooterTemplate&gt;
            &lt;/asp:TemplateField&gt;
        &lt;/Columns&gt;
</code></pre>
