示例#1
0
        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);
            }
        }
示例#2
0
 public void ProcessRequest(HttpContext context)
 {
     LogonUtility.Logout();
 }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var service = new ChinaPay.Utility.VerifyCodeService();

            service.CreateImageOnPage(LogonUtility.GenerateValidateCode(), HttpContext.Current);
        }