示例#1
0
        protected void cargar()
        {
            SQL_conection nva = new SQL_conection();
            nva.JalarPreg51();

            Image51.ImageUrl = ("~/ImagenesDePreguntas/51.jpg");
            lblpregunta51.Text = nva.Preg1;
            rdbres1preg51.Text = nva.Op1;
            rdbres2preg51.Text = nva.Op2;
            rdbres3preg51.Text = nva.Op3;
            rdbres4preg51.Text = nva.Op4;
            resppreg51 = nva.Resp.TrimEnd();

            nva.JalarPreg52();

            Image52.ImageUrl = ("~/ImagenesDePreguntas/52.jpg");
            lblpregunta52.Text = nva.Preg1;
            rdbres1preg52.Text = nva.Op1;
            rdbres2preg52.Text = nva.Op2;
            rdbres3preg52.Text = nva.Op3;
            rdbres4preg52.Text = nva.Op4;
            resppreg52 = nva.Resp.TrimEnd();

            nva.JalarPreg53();

            Image53.ImageUrl = ("~/ImagenesDePreguntas/53.jpg");
            lblpregunta53.Text = nva.Preg1;
            rdbres1preg53.Text = nva.Op1;
            rdbres2preg53.Text = nva.Op2;
            rdbres3preg53.Text = nva.Op3;
            rdbres4preg53.Text = nva.Op4;
            resppreg53 = nva.Resp.TrimEnd();

            nva.JalarPreg54();

            Image54.ImageUrl = ("~/ImagenesDePreguntas/54.jpg");
            lblpregunta54.Text = nva.Preg1;
            rdbres1preg54.Text = nva.Op1;
            rdbres2preg54.Text = nva.Op2;
            rdbres3preg54.Text = nva.Op3;
            rdbres4preg54.Text = nva.Op4;
            resppreg54 = nva.Resp.TrimEnd();

            nva.JalarPreg55();

            Image55.ImageUrl = ("~/ImagenesDePreguntas/55.jpg");
            lblpregunta55.Text = nva.Preg1;
            rdbres1preg55.Text = nva.Op1;
            rdbres2preg55.Text = nva.Op2;
            rdbres3preg55.Text = nva.Op3;
            rdbres4preg55.Text = nva.Op4;
            resppreg55 = nva.Resp.TrimEnd();
        }