コード例 #1
0
        protected void cargar()
        {
            SQL_conection nva = new SQL_conection();
            nva.JalarPreg26();

            Image26.ImageUrl = ("~/ImagenesDePreguntas/26.jpg");
            lblpregunta26.Text = nva.Preg1;
            rdbres1preg26.Text = nva.Op1;
            rdbres2preg26.Text = nva.Op2;
            rdbres3preg26.Text = nva.Op3;
            rdbres4preg26.Text = nva.Op4;
            resppreg26 = nva.Resp.TrimEnd();

            nva.JalarPreg27();

            Image27.ImageUrl = ("~/ImagenesDePreguntas/27.jpg");
            lblpregunta27.Text = nva.Preg1;
            rdbres1preg27.Text = nva.Op1;
            rdbres2preg27.Text = nva.Op2;
            rdbres3preg27.Text = nva.Op3;
            rdbres4preg27.Text = nva.Op4;
            resppreg27 = nva.Resp.TrimEnd();

            nva.JalarPreg28();

            Image28.ImageUrl = ("~/ImagenesDePreguntas/28.jpg");
            lblpregunta28.Text = nva.Preg1;
            rdbres1preg28.Text = nva.Op1;
            rdbres2preg28.Text = nva.Op2;
            rdbres3preg28.Text = nva.Op3;
            rdbres4preg28.Text = nva.Op4;
            resppreg28 = nva.Resp.TrimEnd();

            nva.JalarPreg29();

            Image29.ImageUrl = ("~/ImagenesDePreguntas/29.jpg");
            lblpregunta29.Text = nva.Preg1;
            rdbres1preg29.Text = nva.Op1;
            rdbres2preg29.Text = nva.Op2;
            rdbres3preg29.Text = nva.Op3;
            rdbres4preg29.Text = nva.Op4;
            resppreg29 = nva.Resp.TrimEnd();

            nva.JalarPreg30();

            Image30.ImageUrl = ("~/ImagenesDePreguntas/30.jpg");
            lblpregunta30.Text = nva.Preg1;
            rdbres1preg30.Text = nva.Op1;
            rdbres2preg30.Text = nva.Op2;
            rdbres3preg30.Text = nva.Op3;
            rdbres4preg30.Text = nva.Op4;
            resppreg30 = nva.Resp.TrimEnd();
        }