سلام دوست عزیز این یک نمونه هست البته من توی تکس باکس نمایش دادم .
SqlCommand com = new SqlCommand("select count(name) from faktor where code='" + Convert.ToInt32(textBox9.Text) + "' and date='" + textBox11.Text + "' ", con);
com.Connection.Open();
int counter =...