foreach (GridViewRow row in GridView1.Rows) { if (row.RowType == DataControlRowType.DataRow) { CheckBox cb = (CheckBox)row.FindControl("Check"); if (cb.Checked == true) { if (cb != null && cb.Checked) { // a simple javascript that says Checked MyClass.MyAlert(this, "Checked", "123"); } } else { MyClass.MyAlert(this, "Not Checked", "123"); return; } } } /*like i said before it worked perfectly fine if i check all the items, but if i check one items it will not work.... Am I missing something?.. Kindly Assist me thanks for your valued time...i really do appreciate them */
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)