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 ChoudharyPosted Jun 1, 2015, 1:24 PM
{
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;
}
}
navya bPosted Jun 1, 2015, 1:08 PM
Pankaj Kumar ChoudharyPosted Jun 1, 2015, 12:42 PM