hi friends
How to View my Generic List to a label in a webpage when a button is fired from another page .. or else in gridview
string itemName;
int count = GridView1.Rows.Count;
List<int32> id = new List<int32>();
foreach (GridViewRow item in GridView1.Rows)
{
itemName = item.Cells[1].Text;
id.Add(method to get id from database);
}
foreach (Int32 txt in id)
{
globalvariable+= txt.ToString();
}
please provide some code