protected void Page_Load(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(Request.QueryString["pi"]))
        {
            var         oProduct = new Product();
            var         dv       = oProduct.ProductSelectOne(Request.QueryString["pi"]).DefaultView;
            ViewProduct view     = new ViewProduct();
            view.CreateView(dv[0]["ProductID"].ToString(), dv[0]["CategoryID"].ToString(), dv[0]["ImageName"].ToString(), dv[0]["ProductNameEn"].ToString(), !string.IsNullOrEmpty(dv[0]["Price"].ToString()) ? (string.Format("{0:##,###.##}", dv[0]["Price"]).Replace('.', '*').Replace(',', '.').Replace('*', ',')) : "");
        }
        if (!IsPostBack)
        {
            string strTitle, strDescription, strMetaTitle, strMetaDescription;
            if (!string.IsNullOrEmpty(Request.QueryString["pi"]))
            {
                var oProduct = new Product();
                var dv       = oProduct.ProductSelectOne(Request.QueryString["pi"]).DefaultView;

                if (dv != null && dv.Count <= 0)
                {
                    return;
                }
                var row = dv[0];

                strTitle           = Server.HtmlDecode(row["ProductCategoryNameEn"].ToString());
                strDescription     = Server.HtmlDecode(row["DescriptionEn"].ToString());
                strMetaTitle       = Server.HtmlDecode(row["MetaTittleEn"].ToString());
                strMetaDescription = Server.HtmlDecode(row["MetaDescriptionEn"].ToString());

                //hdnSanPham.Value = progressTitle(dv[0]["ProductCategoryName"].ToString()) + "-pci-" + dv[0]["ProductCategoryID"].ToString() + ".aspx";
            }
            else
            {
                strTitle           = strMetaTitle = "Products";
                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;
        }
    }