<asp:TemplateField>
<FooterTemplate>
<asp:Button ID="Button1" runat="server" Text="Insert" CommandName="add" />
</FooterTemplate>
</asp:TemplateField>
-----------QUESTION IS I HAVE TO FIND CLICK EVENT OF THIS BUTTON ; I HAVW WRITTEN THIS CODE
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if(e.CommandName=="add")
{
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = GridView1.Rows[index];
ClientScript.RegisterStartupScript(Page.GetType(), "acknowledgement", "<script>alert('Record Added Successfully')</script>");
}
}