1 2 3 4 5 6 7 8 9 10 11 12
|
SqlConnection oConnection = new SqlConnection(strConnexion);
SqlCommand com = new SqlCommand("modifier_volume", oConnection);
com.CommandType = CommandType.StoredProcedure;
com.Parameters.Add("@id_v", SqlDbType.Int).Value =Request.Params["id_v"];
com.Parameters.Add("@date_volume", SqlDbType.DateTime).Value =TextBox1.Text;
com.Parameters.Add("@volume", SqlDbType.Float).Value =TextBox2.Text;
oConnection.Open();
com.ExecuteNonQuery();
oConnection.Close();
Response.Redirect("pw2.aspx"); |
Partager