Em có tạo 2 table:
NSX:idNSX,tennsx
SanPham:idSP,idNSX,TenSP
Em viết muốn xóa 1 nhà sản xuất đồng thời cũng khóa luôn tất cả các sản phẩm của nhà sản xuất đó .Em viết code như vậy sai chỗ nào .Xin anh/chị chỉ dùm:

string chuoikn = "server=localhost;uid=;pwd=;database=webbandt; inte grated security=true;";
SqlConnection c = new SqlConnection(chuoikn);
c.Open();
try
{
string chuoitruyvan = "delete from nsx where idnsx="+dplNsx.SelectedValue;
chuoitruyvan += "delete from sanpham where idnsx=" + dplNsx.SelectedValue;
SqlCommand m = new SqlCommand();
m.Connection = c;
m.CommandText = chuoitruyvan;
m.ExecuteNonQuery();
Response.Write("<script>alert('Xóa Thành Công')</script>");
}
catch(Exception ex)
{
Response.Write("Thông báo lỗi:"+ex.Message);
}
c.Close();
Em cám ơn