Exemplo n.º 1
0
        public static string getInfo(string UserName, string Password, string PropertyName)
        {
            string rs = "";

            try
            {
                TaiKhoan  dao   = new TaiKhoan();
                DataTable table = dao.GetUser(UserName, Password);
                if (table != null)
                {
                    foreach (DataRow dr in table.Rows)
                    {
                        rs = dr[PropertyName].ToString();
                    }
                }
            }
            catch (Exception)
            {
                rs = "";
            }
            return(rs);
        }