Пример #1
0
    protected void QAC_A5a(object sender, EventArgs e)
    {
        for (var i = 0; i < TableA5a.Rows.Count; i++)
        {
            var r  = CheckBoxListA1.Items[i];
            var r2 = TableA5a.FindControl("RadioButtonListA5a_" + (i + 1).ToString()) as RadioButtonList;
            var r3 = TableA5a.FindControl("TextBoxA5a_" + (i + 1).ToString()) as TextBox;

            saveData(50200 + (i * 10), r.Selected ? r2.SelectedValue : "");
            saveData(50200 + (i * 10) + 1, r.Selected && r2.SelectedValue == "5" ? r3.Text : "");
        }

        standartNext(sender, e);
    }
Пример #2
0
    protected void QAC_TextBox_A9(object sender, EventArgs e)
    {
        var Any = false;

        for (var i = 0; i < TableA5a.Rows.Count; i++)
        {
            var r  = CheckBoxListA1.Items[i];
            var r2 = TableA5a.FindControl("RadioButtonListA5a_" + (i + 1).ToString()) as RadioButtonList;
            if (r2.SelectedValue == "1" && r.Selected)
            {
                Any = true;
            }
        }
        Button17.CommandName = Any ? "Panel8" : "Panel21";
        QAC_TextBox(sender, e);
    }