Esempio n. 1
0
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);

        if (ShowWaitingModal)
        {
            ToolkitScriptManager.RegisterOnSubmitStatement(this, this.GetType(), "ShowWaitingModal", "showWaitingModal(); return true;");
            //    if(Page.IsPostBack && !Page.ClientScript.IsStartupScriptRegistered("CloseWatingModal"))
            //{
            //    ScriptManager.RegisterStartupScript(this, this.GetType(), "CloseWatingModal", "closeWaitingModal();", true);
            //}
        }

        if (!Page.IsPostBack)
        {
            if (!CurrentUser.UserInfo.LastModified.HasValue || CurrentUser.UserInfo.LastModified.Value.AddDays(90) < DateTime.Now)
            {
                Response.Redirect("~/ChangePwd.aspx");
            }
        }
    }