Esempio n. 1
0
        protected void btn_Login_Click(object sender, EventArgs e)
        {
            //Locals
            string modalTitle   = string.Empty;
            string modalMessage = string.Empty;

            try
            {
                DataSet dsLogin = new DataSet();
                UserName = txt_Email.Text;
                Password = txt_Password.Text;
                dsLogin  = COMMON.AccessAuthentication(UserName, Password);

                if (dsLogin.Tables.Count > 0)
                {
                    GetUserCredentails(dsLogin);
                }

                else
                {
                    COMMONFUNCTIONS.ScriptMsgForAjax("Login Failed ", Page);
                    modalTitle   = "Login Failed!";
                    modalMessage = "Invalid Credentials! Please try again";
                    ShowDialog(modalTitle, modalMessage);
                }
            }
            catch (Exception ex)
            {
            }
        }