Example #1
0
        protected void CheckUserProfileUpdates(string userN)
        {
            try
            {
                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 amupdated = sup.FnCheckGranteeProfileUpdated(userN);
                switch (amupdated)
                {
                case true:
                    FormsAuthentication.RedirectFromLoginPage(userN, chkRememberMe.Checked);
                    Response.Redirect("~/Grantee_Dashboard.aspx");
                    break;

                case false:
                    FormsAuthentication.RedirectFromLoginPage(userN, chkRememberMe.Checked);
                    Response.Redirect("Account/Add_Grantee_Profile.aspx");
                    break;
                }
            }
            catch (Exception e)
            {
            }
        }