Example #1
0
        public static bool CheckStudentUser(string name, string pwd)
        {
            Student s = StudentServer.SelectStudentByName(name);

            //不为空,表示查询到了一条学生信息的记录
            if (s != null)
            {
                return(s.StuLoginPwd == pwd);
            }
            else
            {
                return(false);
            }
        }