שלום!!
אני רוצה למחוק פריט מטבלה רק אם הוא שווה למשהו מסוים.ופריט זה נמצא בdropdwonlist כיצד אני יכולה לעשות את זה.
string compeny = tb.Tables[0].Rows[i]["Compeny"].ToString();
cmd = new SqlCommand("Delete from tbl_Users where idcustomer= @Compeny ", con);
cmd.Parameters.Add("@Compeny", System.Data.SqlDbType.NVarChar, 50).Value = DropDownList1.Items(compeny);
תודה ויום טוב!!!!!!!
שורי