private void ResetData(string username, string password, bool check) { TxtLoginEmail.Text = username; TxtLoginPassword.Text = password; CbLoginRemember.Checked = check; TxtLoginEmail.Focus(); }
protected void Page_Load(object sender, EventArgs e) { TxtLoginEmail.Focus(); if (Session["user"] != null) { Guid id = Guid.Parse(Session["user"].ToString()); if (manager.IsLogged(id)) { Response.Redirect("~/List.aspx"); } } }