예제 #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);
        }