protected void QAC_A14(object sender, EventArgs e) { for (var i = 0; i < TableA13.Rows.Count - 1; i++) { var r1 = (TableA12.FindControl("RadioButtonListA12_" + (i + 1).ToString()) as RadioButtonList).SelectedValue == "1"; var r2 = TableA14.FindControl("RadioButtonListA14_" + (i + 1).ToString()) as RadioButtonList; saveData(1400 + i, r1?r2.SelectedValue:""); } standartNext(sender, e); }
protected void QAC_A14(object sender, EventArgs e) { for (var i = 0; i < TableA14.Rows.Count - 1; i++) { var r = CheckBoxListA1.Items[i]; var r2 = TableA14.FindControl("RadioButtonListA14_" + (i + 1).ToString()) as RadioButtonList; var r3 = TableA14.FindControl("TextBoxA14_" + (i + 1).ToString()) as TextBox; saveData(140200 + (i * 10), r.Selected ? r2.SelectedValue : ""); saveData(140200 + (i * 10) + 1, r.Selected && (r2.SelectedValue == "1" || r2.SelectedValue == "2") ? r3.Text : ""); } standartNext(sender, e); }