Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                NegocioArticulo NegocioArticulo = new NegocioArticulo();
                ListaArticulos = NegocioArticulo.ListaDeArticulos();

                repetidor.DataSource = ListaArticulos;
                repetidor.DataBind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            NegocioArticulo NegocioArticulo = new NegocioArticulo();

            if (!IsPostBack)
            {
                TxtCantidad.Text = Convert.ToString(1);
            }

            try
            {
                ListaArticulos = NegocioArticulo.ListaDeArticulos();

                var ArtSelec = Convert.ToInt32(Request.QueryString["Id"]);

                MostrarArticulo = ListaArticulos.Find(J => J.Id == ArtSelec);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }