protected void Page_Load(object sender, EventArgs e)
    {
        this.Page.Title = "KeenProfile Login";
        if (!this.Page.IsPostBack)
        {
            Model_Users u = UserSessionController.FrontAppAuthLogin(this);
            //if (u != null)
            //{
            //    Response.Redirect("/");
            //    Response.End();
            //}


            //string YearSel = string.Empty;
            //for(int i = 0; i < 60; i++)
            //{
            //    int yearstart = 1958;
            //    yearstart = yearstart + i;

            //    YearSel += "<option value=\""+ yearstart + "\" data-content=\""+ yearstart + "\" >"+ yearstart + "</option>";

            //}

            //yearlist.Text = YearSel;
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.Page.Title = "KeenProfile Login";
     if (!this.Page.IsPostBack)
     {
         Model_Users u = UserSessionController.FrontAppAuthLogin(this);
         //if (u != null)
         //{
         //    Response.Redirect("/");
         //    Response.End();
         //}
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Page.Title = "KeenProfile Reset Password";
        if (!this.Page.IsPostBack)
        {
            Model_Users u = UserSessionController.FrontAppAuthLogin(this);
            if (u != null)
            {
                Response.Redirect("/");
                Response.End();
            }
            else
            {
                if (!string.IsNullOrEmpty(Request.QueryString["e"]))
                {
                    HttpSessionState Hotels2Session = HttpContext.Current.Session;

                    string   q        = StringUtility.DecryptedData(Request.QueryString["e"]);
                    string[] arrq     = q.Split('@');
                    string   qUserID  = arrq[0];
                    string   qSession = arrq[1];

                    if (Hotels2Session[qSession] == null)
                    {
                        ss.InnerHtml            = "Sorry the session is timeout";
                        signup_password.Visible = false;
                        ConfirmPassword.Visible = false;
                        btn_login.Visible       = false;
                        bb.Visible         = false;
                        btn_forgot.Visible = true;
                    }
                }
                else
                {
                    ss.InnerHtml            = "Sorry the session is timeout";
                    signup_password.Visible = false;
                    ConfirmPassword.Visible = false;
                    btn_login.Visible       = false;
                    bb.Visible         = false;
                    btn_forgot.Visible = true;
                }
            }
        }
    }