protected void btnLogin_Click(object sender, EventArgs e) { string userCode = "fanruiquan";// txtUserName.Text.Trim(); string password = "******";// txtPassword.Text.Trim(); UserInfoBll userBll = new UserInfoBll(); UserInfo userInfo = userBll.GetUserByCode(userCode); PageBase pageBase = new PageBase(); if(pageBase.Login(userInfo,password )) { Response.Redirect("Main.aspx"); } }