protected void QAC_A24(object sender, EventArgs e) { for (var i = 0; i < TableA24.Rows.Count - 1; i++) { var r2 = TableA24.FindControl("RadioButtonListA24_" + (i + 1).ToString()) as RadioButtonList; if (r2 != null) { saveData(2400 + (i), r2.SelectedValue); } } var Any = false; for (var i = 0; i < TableA5a.Rows.Count; i++) { var r = CheckBoxListA1.Items[i]; var r2 = TableA2.FindControl("RadioButtonListA5a_" + (i + 1).ToString()) as RadioButtonList; if (r2.SelectedValue == "1" && r.Selected) { Any = true; } } Button52.CommandName = Any ? "Panel16" : "Panel18"; standartNext(sender, e); }
protected void QAC_A2(object sender, EventArgs e) { for (var i = 0; i < TableA2.Rows.Count; i++) { var r = CheckBoxListA1.Items[i]; var r2 = TableA2.FindControl("CheckBoxListA2_" + (i + 1).ToString()) as CheckBoxList; for (int j = 0; j < r2.Items.Count; j++) { ListItem li = r2.Items[j]; saveData(200100 + (i * 100) + j, r.Selected ?(li.Selected?"1":"") : ""); } } standartNext(sender, e); }
protected void QAC_TextBox_A18(object sender, EventArgs e) { var Any = false; for (var i = 0; i < TableA5a.Rows.Count; i++) { var r = CheckBoxListA1.Items[i]; var r2 = TableA2.FindControl("RadioButtonListA5a_" + (i + 1).ToString()) as RadioButtonList; if (r2.SelectedValue == "1" && r.Selected) { Any = true; } } Button116.CommandName = Any ? "Panel25" : "Panel15"; QAC_TextBox(sender, e); }