private void btnGuncelle_Click(object sender, EventArgs e)
{
string sorgu = "UPDATE tablo_1 SET ad=@ad,soyad=@soyad,tc_kimlik=@tc_kimlik,dttarih=@dttarih,rahatsizlik=@rahatsizlik,mno=@mno WHERE mno=@no";
komut = new SqlCommand(sorgu, baglanti);
komut.Parameters.AddWithValue("@no", Convert.ToInt16(textBox6.Text));
komut.Parameters.AddWithValue("@ad", txtAdi.Text);
komut.Parameters.AddWithValue("@soyad", txtSoyadi.Text);
komut.Parameters.AddWithValue("@tc_kimlik", txtKimlik.Text);
komut.Parameters.AddWithValue("@rahatsizlik", txtRahatsizlik.Text);
komut.Parameters.AddWithValue("@dttarih", dateTimePicker1.Value);
komut.Parameters.AddWithValue("@ad2", textBox6.Text);
baglanti.Open();
komut.ExecuteNonQuery();
baglanti.Close();
HastaGetir();
When i run the program everything works fine adding data and deleting data but when i uptade the data i having this error and the name changes to hasta_id how can i fix this?