Teknoloji Haberleri
DH
forum
mini
Uygulama ile
aç
Uygulama ile Aç
Giriş
Kayıt
DH Anasayfa
İndirim Kodu
Ara
Popüler
Foruma Git
Hakkımızda
Destek
Mobil Sürüm
Standart Site Görünümü
Bu Konuda
Tüm Forumlar
Web Tasarım - Programlama
Yazılım Geliştirme
MsSQL / MySQL
Bu Konuda
Bağlan:
Facebook
Google+
Twitter
Aşağı Git
Tüm Forumlar
Web Tasarım - Programlama
Yazılım Geliştirme
MsSQL / MySQL
ExecuteNonQuery(); HATASI ALIYORUM LÜTFEN ACİL YARDIM LAZIM
Bu konudaki kullanıcılar: 1 misafir
4
Cevap
299
Tıklama
0
Öne Çıkarma
1. sayfa
ExecuteNonQuery(); HATASI ALIYORUM LÜTFEN ACİL YARDIM LAZIM
Cevap Yaz
Konuya Özel
Linkli Mesajlar
Seçkin Yorumlar
K
kosova5611
Cevapla
Özel Mesaj
Şikayet
Mesaja Link
Takip Et
6 yıl
Er
Konu Sahibi
if (textBox1.Text != "" && textBox2.Text != "" && dateTimePicker1.Text != "" && textBox6.Text != "" && comboBox1.Text != "" && textBox3.Text != "" && textBox4.Text != "" && textBox5.Text != "" && comboBox2.Text != "")
{
komut.Connection = baglanti;
baglanti.Open();
komut.CommandText = "insert into ogrencilistele(id,AdSoyad,DogumTarihi,DogumYeri,Cinsiyet,Adres,Telefon,EPosta,Bolum)Values('" + textBox1.Text + "','" + textBox2.Text + "','" + dateTimePicker1.Text + "','" + textBox6.Text + "','" + comboBox1.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" + comboBox2.Text + "')";
komut.ExecuteNonQuery();
komut.Dispose();
komut.ExecuteNonQuery();
baglanti.Close();
MessageBox.Show("Kayıt başarı ile eklendi.");
}
else
{
MessageBox.Show("Boş Alanları Doldurunuz.");
}
}
}
}
< Resime gitmek için tıklayın >
1. sayfa
Hizmet kalitesi için çerezleri kullanabiliriz, DH'yi kullanırken depoladığımız çerezlerle ilgili
veri politikamıza
gözatın.
{
komut.Connection = baglanti;
baglanti.Open();
komut.CommandText = "insert into ogrencilistele(id,AdSoyad,DogumTarihi,DogumYeri,Cinsiyet,Adres,Telefon,EPosta,Bolum)Values('" + textBox1.Text + "','" + textBox2.Text + "','" + dateTimePicker1.Text + "','" + textBox6.Text + "','" + comboBox1.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" + comboBox2.Text + "')";
komut.ExecuteNonQuery();
komut.Dispose();
komut.ExecuteNonQuery();
baglanti.Close();
MessageBox.Show("Kayıt başarı ile eklendi.");
}
else
{
MessageBox.Show("Boş Alanları Doldurunuz.");
}
}
}
}< Resime gitmek için tıklayın >