示例#1
0
        protected void btnConfirm_Click(object sender, EventArgs e)
        {
            GameMatchUserInfo userInfo = new GameMatchUserInfo( );

            userInfo.Accounts      = CtrlHelper.GetText(txtAccounts);
            userInfo.ClientIP      = GameRequest.GetUserIP( );
            userInfo.CollectDate   = DateTime.Now;
            userInfo.Compellation  = CtrlHelper.GetText(txtCompellation);
            userInfo.DwellingPlace = CtrlHelper.GetText(txtDwellingPlace);
            userInfo.EMail         = CtrlHelper.GetText(txtEMail);
            userInfo.Gender        = Convert.ToByte(rdoFemale.Checked == true ? 0 : 1);
            userInfo.MatchID       = XID;
            userInfo.MobilePhone   = CtrlHelper.GetText(txtMobilePhone);
            userInfo.PassportID    = CtrlHelper.GetText(txtPassportID);
            userInfo.PostalCode    = CtrlHelper.GetText(txtPostalCode);
            userInfo.QQ            = CtrlHelper.GetText(txtQQ);

            Message umsg = webFacade.AddGameMatch(userInfo, TextEncrypt.EncryptPassword(CtrlHelper.GetText(txtPwd)));

            if (umsg.Success)
            {
                ShowAndRedirect("报名成功!", "/Match/Index.aspx");
            }
            else
            {
                Show(umsg.Content);
            }
        }