Esempio n. 1
0
        protected void AddTManual_Click(object sender, EventArgs e)
        {
            Security objSecurity = new Security();

            #region "variables"
            string vFName = objSecurity.KillChars(txtFName.Text);
            string vLName = objSecurity.KillChars(txtLName.Text);
            string vEmail = objSecurity.KillChars(txtEmail.Text);
            #endregion

            if (LoginBAL.CheckEmailExsists(vEmail))
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "script", "CallNotify('This email address has been used by some other user. Please use another valid email!', '', 'danger', 'Ad_MDE_Mgmt.aspx?MDE=active');", true);
            }
            else
            {
                if (LoginBAL.RegistrationByRole(vFName, vLName, vEmail, 1, Convert.ToInt32(HttpContext.Current.Session["UserAuthId"].ToString())))
                {
                }
            }
        }