string strRandTimes = ""; foreach (Control c in Repeater1.Items) { CheckBox chk = (CheckBox)c.FindControl("chk"); if (chk.Checked == true) { strRandTimes = strRandTimes + "1|"; } else { strRandTimes = strRandTimes + "0|"; } }