Today after many attempts yet tired less spirit to make my Windows Server 2012 Server as "Domain Controller" for getting some experience in SharePoint 2013 , I made it. and it works like charm.
Thursday, November 29, 2012
Tuesday, November 06, 2012
Gridview with checkbox
This code snippet will be used to find out the checked box's row in ASP.NET GridView.
for(int i = 0;i < grid.Rows.Count;i++)
{
CheckBox cb = (CheckBox)grd.Rows[i].FindControl("chkName");
if (cb.Checked)
{
b.Append(grid.Rows[i].Cells[1].Text.ToString()+",");
}
}
Response.Write(b.ToString());
for(int i = 0;i < grid.Rows.Count;i++)
{
CheckBox cb = (CheckBox)grd.Rows[i].FindControl("chkName");
if (cb.Checked)
{
b.Append(grid.Rows[i].Cells[1].Text.ToString()+",");
}
}
Response.Write(b.ToString());
Subscribe to:
Posts (Atom)