database : MYSQL
aspnet : 4.0
... bağlantı işlemleri
OdbcCommand sorguGiris = new OdbcCommand("SELECT * FROM siteayar WHERE AUSERCODE=@BayiCode and AUSERNAME=@UserName and AUSERPASS=@UserPass ", MySqlBaglan);
sorguGiris.Parameters.AddWithValue("@BayiCode", txtBayiCode.Text);
sorguGiris.Parameters.AddWithValue("@UserName", txtBayiUser.Text);
sorguGiris.Parameters.AddWithValue("@UserPass", txtBayiPass.Text);
OdbcDataReader drOku = sorguGiris.ExecuteReader();
if (drOku.Read())
{
lblBilgi.Text = "Giriş başarılı";
}
else
{
lblBilgi.Text = "Hata : Giriş Bilgileriniz Doğrulanamadı.";
}
drOku.Close();
Odbc kütüphaneleri ile olmuyor