コード例 #1
0
        protected void CheckApplication(string refNoH)
        {
            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;
            bool isT = sup.FnCheckIfApplied(Session["username"].ToString(), refNoH);

            if (isT == false)
            {
                ApplyConsult();
            }
            else
            {
                // ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "CodesaBitch", "alert('Already Applied!');", true);
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "CodesaBitch", "AlreadyIn();", true);
            }
        }