tello_14_bjk Posted October 1, 2014 Share Posted October 1, 2014 (edited) Arkadaşlar c# da bir program yapıyorum sıkıntım şimdi şu önceden kayıt yaptığımız veriyi güncellemek ama bir türlü olmuyor bütün veritabanını güncelliyor :( nasıl halledebilirim bu sorunu ? Güncelleme Butonu; baglanti.Open(); DataTable dt = new DataTable(); OleDbDataAdapter ad = new OleDbDataAdapter("UPDATE kayit SET WebSayfa='" + txtwebsayfa.Text + "',KullaniciAdi ='" + txtkullaniciadi.Text + "',Sifre='" + txtsifre.Text + "'", baglanti); ad.Fill(dt); dataGridView1.DataSource = dt; datagoster(); baglanti.Close(); DataGridView deki bilgileri textbox'a aktarma txtwebsayfa.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); txtkullaniciadi.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); txtsifre.Text = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString(); Edited October 1, 2014 by tello_14_bjk Quote Link to comment Share on other sites More sharing options...
KintaRo Posted October 1, 2014 Share Posted October 1, 2014 SQL sorgusunun sonuna WHERE koymazsan tüm tabloyu günceller evet, bir tanımlayıcı gerekiyor. "UPDATE kayit SET WebSayfa='" + txtwebsayfa.Text + "',KullaniciAdi ='" + txtkullaniciadi.Text + "',Sifre='" + txtsifre.Text + "' WHERE id='" + txtId + "'" gibi... Quote Link to comment Share on other sites More sharing options...
tello_14_bjk Posted October 1, 2014 Author Share Posted October 1, 2014 abi bu hatayı veriyor :( Gerekli bir veya daha fazla parametre için girilen değer yok. :( Quote Link to comment Share on other sites More sharing options...
KintaRo Posted October 1, 2014 Share Posted October 1, 2014 pm ile team viewer bilgilerini ver de bakalım. gece gece sevaba girelim :D Quote Link to comment Share on other sites More sharing options...
tello_14_bjk Posted October 1, 2014 Author Share Posted October 1, 2014 (edited) tamam abi ;) Edited October 1, 2014 by tello_14_bjk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.