protected void ButtonSubmit_Click(object sender, EventArgs e) { UserBusiness business = new UserBusiness(); string account = this.TextBoxUsername.Text; string password = this.TextBoxPassword.Text; User user = business.Login(account, password); if ((user != null) && (user.Authentication)) { this.Session[Constant.SESSION_KEY_USER] = user; this.Response.Redirect(string.Format("{0}Manages/Defaults/About.aspx", EnvironmentalMonitor.Support.Resource.Variable.VirtualRootPath)); } }