Example #1
0
        public bool CheckConsultant(string idNoReg)
        {
            bool    status      = false;
            var     credentials = new NetworkCredential(ConfigurationManager.AppSettings["W_USER"], ConfigurationManager.AppSettings["W_PWD"], ConfigurationManager.AppSettings["DOMAIN"]);
            Portals sup         = new Portals();

            sup.Credentials     = credentials;
            sup.PreAuthenticate = true;

            if (sup.FnVerifyConsultant(idNoReg) == true)
            {
                status = true;
                KCDFAlert.ShowAlert(status.ToString() + "That Reg No/ID No is already taken");
                //Session["myStatusIs"] = status;
                //lblStatus.Text = Session["myStatusIs"].ToString();
            }
            else
            {
                status = false;
                //Session["myStatusIsFalse"] = status;
                // KCDFAlert.ShowAlert(status.ToString()+"Not Taken");
                CreateAConsultant();
            }

            return(status);
        }