Example #1
0
        public Boolean CheckUser(string Name, string Password)
        {
            dtTemp = DBProcess.Get_Login(Name, Password);

            if (dtTemp.Rows.Count == 1)
            {
                Session["USERID"] = Name;
            }
            else
            {
                Session["USERID"] = null;
                Session.Remove("USERID");
            }

            return(true);
        }