protected void btnGuiCamNhan_Click(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         string ImageName             = FileImageName.UploadedFiles.Count > 0 ? FileImageName.UploadedFiles[0].GetName() : "";
         string ProjectTitle          = txtFullNameCamNhan.Text.Trim();
         string ConvertedProjectTitle = Common.ConvertTitle(ProjectTitle);
         var    oProject = new TLLib.Project();
         ImageName = oProject.ProjectInsert(ImageName, txtFullNameCamNhan.Text.Trim().ToString(), txtFullNameCamNhan.Text.Trim().ToString(), txtFullNameCamNhan.Text.Trim().ToString(), ConvertedProjectTitle, "", txtContentCamNhan.Text, "", "", "", "", "", "", "", "13", "False", "False", "False", "False", "");
         string strFullPath = "~/res/project/" + ImageName;
         if (!string.IsNullOrEmpty(ImageName))
         {
             FileImageName.UploadedFiles[0].SaveAs(Server.MapPath(strFullPath));
             ResizeCropImage.ResizeByCondition(strFullPath, 89, 89);
             ResizeCropImage.CreateThumbNailByCondition("~/res/project/", "~/res/project/thumbs/", ImageName, 120, 120);
         }
         //if (RadCaptcha1.IsValid)
         //{
         //send email
         ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "runtime", " $(document).ready(function () {alert('Cám ơn bạn gửi cảm nhận!')});", true);
         txtFullNameCamNhan.Text = "";
         txtContentCamNhan.Text  = "";
         //}
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string strTitle, strDescription, strMetaTitle, strMetaDescription;
         if (!string.IsNullOrEmpty(Request.QueryString["bv"]))
         {
             var oProject = new TLLib.Project();
             var dv       = oProject.ProjectSelectOne(Request.QueryString["bv"]).DefaultView;
             if (dv != null && dv.Count <= 0)
             {
                 return;
             }
             var row = dv[0];
             strTitle           = Server.HtmlDecode(row["ProjectTitleEn"].ToString());
             strDescription     = Server.HtmlDecode(row["DescriptionEn"].ToString());
             strMetaTitle       = Server.HtmlDecode(row["MetaTittleEn"].ToString());
             strMetaDescription = Server.HtmlDecode(row["MetaDescriptionEn"].ToString());
             //hdnSanPhamDetails.Value = progressTitle(dv2[0]["ProductCategoryName"].ToString()) + "-pci-" + dv2[0]["ProductCategoryID"].ToString() + ".aspx";
         }
         else
         {
             strTitle           = strMetaTitle = "Bài Viết Y Khoa";
             strDescription     = "";
             strMetaDescription = "";
         }
         Page.Title = !string.IsNullOrEmpty(strMetaTitle) ? strMetaTitle : strTitle;
         var meta = new HtmlMeta()
         {
             Name    = "description",
             Content = !string.IsNullOrEmpty(strMetaDescription) ?
                       strMetaDescription : strDescription
         };
         Header.Controls.Add(meta);
         //lblTitle.Text = strTitle;
     }
 }