private void GioiThieu_save_update() { //try //{ info.TieuDe = txtTitle.Text; info.Noidung = editor.Text; info.DienGiai = lblHeadingText.Text; info.NguonBaiViet = txtSource.Text; //ko co du lieu info.Ngayviet = DateTime.Now; info.Nguoiviet = NhanVien(); info.Img = FileUpLoad1.FileName; info.MaLoaiTin = int.Parse("0" + ddlDichvu.Text); info.TrangThai = 1; if (Request.QueryString["info_id"] == null) { if (FileUpLoad1.FileName != "") { string path = Server.MapPath("~/uploads/tintuc/") + FileUpLoad1.FileName; FileUpLoad1.SaveAs(path); //luu va co image info.Gioithieu_luu(); Response.Redirect("info_send.aspx?add=1"); } } else { info.MaGioiThieu = int.Parse("0" + Request.QueryString["info_id"].ToString()); info.Gioithieu_capnhat(); Response.Redirect("info_send.aspx?update=1"); } //} //catch (Exception) //{ // lblMessageStatus.Text = "<dl id=\"system-message\"><dd class=\"message message error\"><ul><li> Hệ thống chưa cấp quyền ghi thư mục Upload/baiviet</li></ul></dd></dl>"; // lblMessageStatus.Visible = true; //} }