//取消绑定 protected void ClearPasswordCard(object sender, EventArgs e) { PasswordCard pc = new PasswordCard( ); pc.SerialNumber = Convert.ToInt32(lbSerialNumber.Text.Replace(" ", "")); string numberOne = CtrlHelper.GetText(txtNumber1); string numberTwo = CtrlHelper.GetText(txtNumber2); string numberThree = CtrlHelper.GetText(txtNumber3); if (string.IsNullOrEmpty(numberOne) || string.IsNullOrEmpty(numberTwo) || string.IsNullOrEmpty(numberThree)) { Show("请填写坐标码"); return; } string lbNumberOne = pc.GetNumberByCoordinate(CtrlHelper.GetText(lbNumber1)); string lbNumberTwo = pc.GetNumberByCoordinate(CtrlHelper.GetText(lbNumber2)); string lbNumberThree = pc.GetNumberByCoordinate(CtrlHelper.GetText(lbNumber3)); if (numberOne != lbNumberOne || numberTwo != lbNumberTwo || numberThree != lbNumberThree) { Show("坐标码填写错误"); return; } bool resutl = accountsFacade.ClearUserPasswordCardID(Fetch.GetUserCookie( ).UserID); if (resutl) { ShowAndRedirect("取消绑定成功", "ExitPasswordCard.aspx"); } else { Show("取消绑定失败,请联系客服人员"); return; } }