Latest members | More ...
Unable to cast object of type 'System.Int32' to type 'System.Web.UI.WebControls.GridViewRow'. foreach (GridViewRow g in ((ArrayList)(Session["al"])) { str1 = ((System.Web.UI.WebControls.Label)g.FindControl("lbl1No")).Text; str2 = ((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??
Oswaldlily, if this helps please login to Mark As Answer. | Reply | Alert Moderator
Write New Post | More ...