using (SqlConnection con = new SqlConnection(connectionString)) { SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "Loging"; cmd.Parameters.AddWithValue("@UserName", username); cmd.Parameters.AddWithValue("@PassWord", password); con.Open(); int x =Convert.ToInt32(cmd.ExecuteScalar()); isAuthenticated = x == 1; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)