Latest members | More ...
even if my checkbox checked insde gridview this condtion not satisfying means not enterin if loop. what could be reason.Is it correct way to get checkbox id in gridview public void name() { foreach (GridViewRow g in ((GridView)(Session["gview"])).Rows) { if (((CheckBox)g.FindControl("chkSelect")).Checked==true) { str1 = ((System.Web.UI.WebControls.Label)g.FindControl("lbl1")).Text; str2 = ((System.Web.UI.WebControls.Label)g.FindControl("lbl2")).Text; i++; } } }
Oswaldlily, if this helps please login to Mark As Answer. | Reply | Alert Moderator
Write New Post | More ...