Esempio n. 1
0
        /*
         * Llena la grilla de los clones con el año seleccionado
         */
        private void PoblarGrilla()
        {
            CatalogClones cc = new CatalogClones();

            this.gdvClones.DataSource = cc.GetClones(valorAñoInt32);
            this.gdvClones.DataBind();
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            CatalogClones cc = new CatalogClones();

            contFertilidad         = 0;
            contImagen             = 0;
            contClonesCodificacion = 0;

            //PREGUNTA SI ES DISTINTO DE NULL PORQUE EL USUARIO PUEDE ESCRIBIR DESDE LA URL Y NO TENDRÍA AÑO ASIGNADO
            if (Request.QueryString["valor"] != null)
            {
                valorAñoString = Request.QueryString["valor"];
            }
            else
            {
                valorAñoString = "0";
            }
            valorAñoInt32 = Int32.Parse(valorAñoString);

            this.lblClonesError.Visible = false;
            this.lblClonesError.Text    = "";
            if (!Page.IsPostBack)
            {
                this.lblClonesAño.Text   += "(" + valorAñoInt32.ToString() + ")";
                this.gdvClones.DataSource = cc.GetClones(valorAñoInt32);
                this.gdvClones.DataBind();
            }
        }