Example #1
0
        protected void CheckStudentsProfile(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.FnCheckScholarProfileUpdated(userN);
                switch (amupdated)
                {
                case true:
                    //FormsAuthentication.RedirectFromLoginPage(userN, chkRememberMe.Checked);
                    Response.Redirect("~/Dashboard.aspx");
                    break;

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