نوشته شده توسط
ma.rad
کد هاتونو تو تگ #c بزارید تا وضح تر باشن...
چشم
بفرمایید:
SqlCommand com1 = new SqlCommand("insert into faktor (code,name,codekala,namkala,tedadkala,gheymatkala, sum,date)"
+ " values ('" + Convert.ToInt32(textBox1.Text) + "' , '" + textBox2.Text + "' , '" + Convert.ToInt32(textBox3.Text) + "' ,"
+ " '" + textBox4.Text + "' , '" + Convert.ToInt32(textBox5.Text) + "', '" + Convert.ToInt32(textBox6.Text) + "',"
+ " '" + textBox13.Text + "','" + textBox7.Text + "') ", con);
com1.Connection.Open();
com1.ExecuteNonQuery();
com1.Connection.Close();