Line 135: string query = "delete b from basket b INNER JOIN products p on p.id=b.pid where @id=b.guid and p.count<b.count";
Line 136: SqlCommand scon = new SqlCommand(query, conn);
Line 137: scon.Parameters.AddWithValue("@id", Request.Cookies["shoppingcart"].Value.ToString());
Line 138: SqlDataReader dr = scon.ExecuteReader();
Line 139: dr.Read();
|