Esempio n. 1
0
 protected void btn_updateprofile_Click(object sender, EventArgs e)
 {
     DataTable table = (DataTable)Session["ThanhVien"];
     ND_THONG_TIN_ND nd = new ND_THONG_TIN_ND(table, 0);
     try
     {
         DateTime bithday = Convert.ToDateTime(String.Format("{0}/{1}/{2}", dropd_month.Text, dropd_day.Text, dropd_year.Text));
         bool ok = nd.Save_Object(txt_full_name.Text, nd.MEM_GROUP_ID, txt_address.Text, functions.GetStringDate(bithday),
             rd_sex.SelectedItem.Value, txt_phonenumber.Text, txt_faxnumber.Text, txt_email.Text, txt_website.Text,
            txt_yahoo.Text, txt_skype.Text, nd.TAX_CODE, nd.NOTE, nd.AVATAR_PATH, nd.VISIBLE_BIT,functions.CheckDate(nd.CREATED_DATE), nd.EDITED_BY,
            functions.GetStringDatetime(), nd.ID,nd.HEART);
         if (ok)
             lbl_error.Text = "Cập nhật thông tin cá nhân thành công";
         else lbl_error.Text = "Cập nhật thông tin cá nhân không thành công, vui lòng kiểm tra lại thông tin!";
     }
     catch (Exception ex)
     {
         lbl_error.Text = "Cập nhật thông tin cá không thành công" ;
     }
 }