Thursday, July 15, 2010

Fetch data from Footer of Gridview

Taking data from the Footer of a Gridview control in asp.net

GridViewRow row = GridView1.FooterRow;
if (e.CommandName == "cmdSUBMIT")
{
string name = ((TextBox)row.FindControl("TextBoxName")).Text;
Response.Write(name);
}

No comments: