コード例 #1
0
 protected void btn_update_Click(object sender, EventArgs e)
 {
     using (AlmacenEntities modelo = new AlmacenEntities())
     {
         string  nt  = txtsku.Value;
         string  nam = txtname.Value;
         int     add = Convert.ToInt16(txtcantidad.Value);
         decimal ph  = Convert.ToDecimal(txtprecio.Value);
         modelo.prApp_Producto_Update(idProducto, nt, nam, add, Costo, ph, bod, 1);
     }
     Response.Redirect("WebProductos.aspx");
 }