Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                DataTable consulta = pruebaC.consulta_combox_nombre();
                DropPruebas.DataTextField = "nombre_prueba";
                DropPruebas.DataSource    = consulta;
                DropPruebas.DataBind();
                DivNohaysancionAsignadas.InnerHtml = "<Strong>Nota:</Strong> Debes seleccionar una prueba para ver la sanciones asignadas";
                DivNohaysancionAsignadas.Attributes.Add("Style", "Display:Block");
                //BindGrid();
            }

            //GridView
            if (!IsPostBack)
            {
                // Enable the GridView paging option and
                // specify the page size.
                TblPrueba_sanciones.AllowPaging = true;
                TblPrueba_sanciones.PageSize    = 5;


                // Enable the GridView sorting option.
                TblPrueba_sanciones.AllowSorting = true;


                // Initialize the sorting expression.
                ViewState["SortExpression"] = "id_pregunta ASC";

                // Populate the GridView.
                //BindGrid();
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                DataTable consulta = PruebaC.consulta_combox_nombre();
                DropPruebas.DataTextField = "nombre_prueba";
                DropPruebas.DataSource    = consulta;
                DropPruebas.DataBind();
                BindGridView();
            }

            if (!IsPostBack)
            {
                // Enable the GridView paging option and
                // specify the page size.
                Tbl_sanciones.AllowPaging = true;
                Tbl_sanciones.PageSize    = 5;


                // Enable the GridView sorting option.
                Tbl_sanciones.AllowSorting = true;


                // Initialize the sorting expression.
                ViewState["SortExpression"] = "id_pregunta ASC";

                // Populate the GridView.
                BindGridView();
            }
        }