Unable to cast object of type 'System.Int32' to type 'System.Web.UI.WebControls.GridViewRow'.
foreach (GridViewRow g in ((ArrayList)(Session["al"]))
{
str1[i] = ((System.Web.UI.WebControls.Label)g.FindControl("lbl1No")).Text;
str2[i] = ((System.Web.UI.WebControls.Label)g.FindControl("lbl2No")).Text;
}
why this error??
i have to fetch gridviewi value from another page.
foreach (GridViewRow g in ((Gridview)(Session["gview"]))
If i use like this my gridview is empty..so hw to control??