/// <summary> /// 更新用户资料 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUpdate_Click(object sender, EventArgs e) { IndividualDatum contact = new IndividualDatum( ); contact.Gender = Convert.ToByte(ddlGender.SelectedValue); contact.UnderWrite = TextFilter.FilterScript(txtUnderWrite.Text.Trim( )); contact.Compellation = TextFilter.FilterScript(txtCompellation.Text.Trim( )); contact.MobilePhone = TextFilter.FilterScript(txtMobilePhone.Text.Trim( )); contact.SeatPhone = TextFilter.FilterScript(txtSeatPhone.Text.Trim( )); contact.QQ = TextFilter.FilterScript(txtQQ.Text.Trim( )); contact.EMail = TextFilter.FilterScript(txtEmail.Text.Trim( )); contact.DwellingPlace = TextFilter.FilterScript(txtAddress.Text.Trim( )); contact.UserNote = TextFilter.FilterScript(txtUserNote.Text.Trim( )); contact.UserID = Fetch.GetUserCookie( ).UserID; Message umsg = accountsFacade.ModifyUserIndividual(contact); if (umsg.Success) { ShowAndRedirect("个人资料修改成功!", "/Member/ModifyUserInfo.aspx"); } else { Show(umsg.Content); } }