static string zyd; [WebMethod] public void deneme() { string b="a"; string KullaniciAdi = "a"; string connect = "Data Source=BERKAY-PC\\SQLEXPRESS;Initial Catalog=Hastahane;Integrated Security=True;"; SqlConnection deneme = new SqlConnection(connect); SqlCommand komut = new SqlCommand("SELECT * FROM Giris where KullaniciAdi='" + KullaniciAdi + "'order by KullaniciAdi desc", deneme); try { deneme.Open(); SqlDataReader oku = komut.ExecuteReader(); while (oku.Read()) { b = oku["Sifre"].ToString(); } } finally { deneme.Close(); komut.Dispose(); } zyd=b; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)