Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     contenedores = new StaticContenedorDAL();
     if (!IsPostBack)
     {
         double numero = contenedores.GetContenedorInteligentes().ElementAt <ContenedorInteligente>(0).CapacidadTotal;
         this.gvContenedores.DataSource = contenedores.GetContenedorInteligentes();
         this.gvContenedores.DataBind();
         String.Format("{0:0.00}", numero);
         lblPrueba.Text = Convert.ToString(numero);
     }
 }