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

            Image31.ImageUrl = ("~/ImagenesDePreguntas/31.jpg");
            lblpregunta31.Text = nva.Preg1;
            rdbres1preg31.Text = nva.Op1;
            rdbres2preg31.Text = nva.Op2;
            rdbres3preg31.Text = nva.Op3;
            rdbres4preg31.Text = nva.Op4;
            resppreg31 = nva.Resp.TrimEnd();

            nva.JalarPreg32();

            Image32.ImageUrl = ("~/ImagenesDePreguntas/32.jpg");
            lblpregunta32.Text = nva.Preg1;
            rdbres1preg32.Text = nva.Op1;
            rdbres2preg32.Text = nva.Op2;
            rdbres3preg32.Text = nva.Op3;
            rdbres4preg32.Text = nva.Op4;
            resppreg32 = nva.Resp.TrimEnd();

            nva.JalarPreg33();

            Image33.ImageUrl = ("~/ImagenesDePreguntas/33.jpg");
            lblpregunta33.Text = nva.Preg1;
            rdbres1preg33.Text = nva.Op1;
            rdbres2preg33.Text = nva.Op2;
            rdbres3preg33.Text = nva.Op3;
            rdbres4preg33.Text = nva.Op4;
            resppreg33 = nva.Resp.TrimEnd();

            nva.JalarPreg34();

            Image34.ImageUrl = ("~/ImagenesDePreguntas/34.jpg");
            lblpregunta34.Text = nva.Preg1;
            rdbres1preg34.Text = nva.Op1;
            rdbres2preg34.Text = nva.Op2;
            rdbres3preg34.Text = nva.Op3;
            rdbres4preg34.Text = nva.Op4;
            resppreg34 = nva.Resp.TrimEnd();

            nva.JalarPreg35();

            Image35.ImageUrl = ("~/ImagenesDePreguntas/35.jpg");
            lblpregunta35.Text = nva.Preg1;
            rdbres1preg35.Text = nva.Op1;
            rdbres2preg35.Text = nva.Op2;
            rdbres3preg35.Text = nva.Op3;
            rdbres4preg35.Text = nva.Op4;
            resppreg35 = nva.Resp.TrimEnd();
        }