protected void btnnuevaCarga_ServerClick(object sender, EventArgs e) { try { lista.AddNewstocks(newdesc.Value, int.Parse(newcant.Value), newtipo.Value); newdesc.Value = ""; newcant.Value = ""; newtipo.Value = ""; } catch (Exception ex) { Console.Write(ex); } }