protected void btnUpdate_Click(object sender, EventArgs e) { AccountsProtect protect = new AccountsProtect(); protect.Response1 = CtrlHelper.GetText(txtResponse1); protect.Response2 = CtrlHelper.GetText(txtResponse2); protect.Response3 = CtrlHelper.GetText(txtResponse3); protect.UserID = Fetch.GetUserCookie().UserID; protect.LastLogonIP = GameRequest.GetUserIP(); if (btnUpdate.Text == "申请绑定") { Message umsg = accountsFacade.ApplyUserMoorMachine(protect); if (umsg.Success) { ShowAndRedirect(umsg.Content, "/Member/MoorMachine.aspx"); } else { Show(umsg.Content); } } else if (btnUpdate.Text == "取消绑定") { Message umsg = accountsFacade.RescindUserMoorMachine(protect); if (umsg.Success) { ShowAndRedirect(umsg.Content, "/Member/MoorMachine.aspx"); } else { Show(umsg.Content); } } }