Exemplo n.º 1
0
        protected void cargar()
        {
            SQL_conection nva = new SQL_conection();
            nva.JalarPreg1();

            lblpregunta1.Text = nva.Preg1;
            rdbres1preg1.Text = nva.Op1;
            rdbres2preg1.Text = nva.Op2;
            rdbres3preg1.Text = nva.Op3;
            rdbres4preg1.Text = nva.Op4;
            resppreg1 = nva.Resp.TrimEnd();

            nva.JalarPreg2();

            lblpregunta2.Text = nva.Preg1;
            rdbres1preg2.Text = nva.Op1;
            rdbres2preg2.Text = nva.Op2;
            rdbres3preg2.Text = nva.Op3;
            rdbres4preg2.Text = nva.Op4;
            resppreg2 = nva.Resp.TrimEnd();

            nva.JalarPreg3();

            lblpregunta3.Text = nva.Preg1;
            rdbres1preg3.Text = nva.Op1;
            rdbres2preg3.Text = nva.Op2;
            rdbres3preg3.Text = nva.Op3;
            rdbres4preg3.Text = nva.Op4;
            resppreg3 = nva.Resp.TrimEnd();

            nva.JalarPreg4();

            lblpregunta4.Text = nva.Preg1;
            rdbres1preg4.Text = nva.Op1;
            rdbres2preg4.Text = nva.Op2;
            rdbres3preg4.Text = nva.Op3;
            rdbres4preg4.Text = nva.Op4;
            resppreg4 = nva.Resp.TrimEnd();

            nva.JalarPreg5();

            lblpregunta5.Text = nva.Preg1;
            rdbres1preg5.Text = nva.Op1;
            rdbres2preg5.Text = nva.Op2;
            rdbres3preg5.Text = nva.Op3;
            rdbres4preg5.Text = nva.Op4;
            resppreg5 = nva.Resp.TrimEnd();
        }