protected void chkFacilityChanged(object sender, EventArgs e) { foreach (DataListItem rptItem in rptFactility.Items) { CheckBox allchk = (CheckBox)rptItem.FindControl("chkFacility").ToString(); string facilityCode = rptItem.FindControl("lblFacilityCode").ToString(); if ( facilityCode.Text.ToString() = "0" && allchk.checked) { allchk1.Checked = true; //rptItem1.Enabled = false; } return; } } }
protected void chkFacilityChanged(object sender, EventArgs e) { foreach (DataListItem rptItem in rptFactility.Items) { CheckBox allchk = (CheckBox)rptItem.FindControl("chkFacility").ToString(); string facilityCode = rptItem.FindControl("lblFacilityCode").ToString(); if ( facilityCode.Text.ToString() = "0" && allchk.checked) { foreach (DataListItem rptItem1 in rptFactility.Items) { CheckBox allchk1 = (CheckBox)rptItem.FindControl("chkFacility").ToString(); allchk1.Checked1 = true; //rptItem1.Enabled = false; } return; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)