Пример #1
0
        protected void cargar()
        {
            SQL_conection nva = new SQL_conection();
            nva.JalarPreg16();

            Image16.ImageUrl = ("~/ImagenesDePreguntas/16.jpg");
            lblpregunta16.Text = nva.Preg1;
            rdbres1preg16.Text = nva.Op1;
            rdbres2preg16.Text = nva.Op2;
            rdbres3preg16.Text = nva.Op3;
            rdbres4preg16.Text = nva.Op4;
            resppreg16 = nva.Resp.TrimEnd();

            nva.JalarPreg17();

            Image17.ImageUrl = ("~/ImagenesDePreguntas/17.jpg");
            lblpregunta17.Text = nva.Preg1;
            rdbres1preg17.Text = nva.Op1;
            rdbres2preg17.Text = nva.Op2;
            rdbres3preg17.Text = nva.Op3;
            rdbres4preg17.Text = nva.Op4;
            resppreg17 = nva.Resp.TrimEnd();

            nva.JalarPreg18();

            Image18.ImageUrl = ("~/ImagenesDePreguntas/18.jpg");
            lblpregunta18.Text = nva.Preg1;
            rdbres1preg18.Text = nva.Op1;
            rdbres2preg18.Text = nva.Op2;
            rdbres3preg18.Text = nva.Op3;
            rdbres4preg18.Text = nva.Op4;
            resppreg18 = nva.Resp.TrimEnd();

            nva.JalarPreg19();

            Image19.ImageUrl = ("~/ImagenesDePreguntas/19.jpg");
            lblpregunta19.Text = nva.Preg1;
            rdbres1preg19.Text = nva.Op1;
            rdbres2preg19.Text = nva.Op2;
            rdbres3preg19.Text = nva.Op3;
            rdbres4preg19.Text = nva.Op4;
            resppreg19 = nva.Resp.TrimEnd();

            nva.JalarPreg20();

            Image20.ImageUrl = ("~/ImagenesDePreguntas/20.jpg");
            lblpregunta20.Text = nva.Preg1;
            rdbres1preg20.Text = nva.Op1;
            rdbres2preg20.Text = nva.Op2;
            rdbres3preg20.Text = nva.Op3;
            rdbres4preg20.Text = nva.Op4;
            resppreg20 = nva.Resp.TrimEnd();
        }