Пример #1
0
 /// <summary>
 /// 设置用户备注名
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnSetRemark_Click(object sender, EventArgs e)
 {
     if (lbUser.SelectedIndex >= 0)
     {
         string       userName     = lbPublicAccount.SelectedValue;
         string       openId       = lbUser.SelectedValue;
         ErrorMessage errorMessage = UserManagement.ChangeUserRemark(userName, openId, txtRemark.Text);
         ltrMessage.Text = string.Format("设置用户备注名{0}。{1}",
                                         errorMessage.IsSuccess ? "成功" : "失败",
                                         errorMessage.IsSuccess ? "" : errorMessage.ToString());
     }
 }