protected void btncart_Click(object sender, EventArgs e) { if (con.State == ConnectionState.Closed) { con.Open(); } SqlCommand cmd = new SqlCommand("addcart1", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@mastreid",OleDbType.VarChar,50); cmd.Parameters.AddWithValue("@usersession"); cmd.Parameters.AddWithValue("@pro_id"); cmd.Parameters.AddWithValue("@pro_name"); cmd.Parameters.AddWithValue("@price"); cmd.Parameters.AddWithValue("@quantity"); cmd.Parameters.AddWithValue("@type"); cmd.Parameters.AddWithValue("@pro_img"); cmd.ExecuteNonQuery(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)