how can i send the row values of gridview to next page using session. i had fileid,filename, filetype etc in my gridview .... but i want to get the filename in the next page when i click on a ButtonField in grid view. how can i get it? using c# help me plz...
Loading

Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 1, 2015, 9:24 AM EDT
{
if (e.CommandName == "Select") // Command Button Name
{
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow selectedRow = CustomersGridView.Rows[index];
Session["Name"] = selectedRow.Cells[1].Text; // select your column
Session["id"] = selectedRow.Cells[0].Text;
}
}
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 1, 2015, 8:42 AM EDT
On second page you can use this code
navya b42 reputationPosted Jun 1, 2015, 9:08 AM EDT