protected void btnSubmit_Click(object sender, EventArgs e) { string message; if (LogonUtility.Logon(this.txtUserName.Text.Trim(), this.txtPassWord.Text, this.txtCode.Text.Trim(), out message)) { Response.Redirect(System.Web.Security.FormsAuthentication.DefaultUrl, true); } else { BasePage.ShowMessage(this, message); } }
public void ProcessRequest(HttpContext context) { LogonUtility.Logout(); }
protected void Page_Load(object sender, EventArgs e) { var service = new ChinaPay.Utility.VerifyCodeService(); service.CreateImageOnPage(LogonUtility.GenerateValidateCode(), HttpContext.Current); }