protected void Button2_Click(object sender, EventArgs e) { Servicio serv = new Servicio(); serv.AgregarPrecio(Convert.ToDecimal(TextBox2.Text), Convert.ToInt32(TextBox1.Text)); Server.Transfer("AñadirPrecio.aspx"); }