Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dtAlbums = XpcHelper.GetAllAlbum(151);
         if (dtAlbums != null && dtAlbums.Rows.Count > 0)
         {
             rptAlbums.DataSource = dtAlbums;
             rptAlbums.DataBind();
         }
     }
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dtAnhDep = XpcHelper.GetTopLastestAlbum(12, 89);
         if (dtAnhDep != null && dtAnhDep.Rows.Count > 0)
         {
             rptAnhDep.DataSource = dtAnhDep;
             rptAnhDep.DataBind();
         }
     }
 }
 public string DangKy(string CusName, string CusAddress, string CusMobile, string CusEmail, string ProductId)
 {
     try
     {
         XpcHelper.DangKyMuaHang(CusName, CusAddress, CusMobile, CusEmail, Convert.ToInt32(ProductId));
         return("Đăng ký thành công. Xin cảm ơn");
     }
     catch (Exception exception)
     {
         return(exception.Message);
     }
 }
 public string DangKy(string fullname, string address, string email, string phone, string gift)
 {
     try
     {
         XpcHelper.DangKyQuaTang(fullname, email, address, phone, gift);
         return("Đăng ký thành công. Xin cảm ơn");
     }
     catch (Exception exception)
     {
         return(exception.Message);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dtTinNhieuNhat = XpcHelper.GetFocusNews(7, 57);
         if (dtTinNhieuNhat != null && dtTinNhieuNhat.Rows.Count > 0)
         {
             rptTinNhieuNhat.DataSource = dtTinNhieuNhat;
             rptTinNhieuNhat.DataBind();
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            int VoteID = 0;

            if (!IsPostBack)
            {
                if (!String.IsNullOrEmpty(Request.QueryString["vid"]))
                {
                    VoteID = Convert.ToInt32(Request.QueryString["vid"]);
                }

                if (VoteID == 0)
                {
                    DataTable dt = XpcHelper.GetVoteActive();
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        VoteID = Convert.ToInt32(dt.Rows[0]["Vote_ID"]);
                    }
                }


                if (VoteID > 0)
                {
                    DataTable dtItem    = XpcHelper.GetVoteItem(VoteID);
                    int       TotalRate = XpcHelper.GetVoteTotal(VoteID);
                    if (dtItem != null && dtItem.Rows.Count > 0)
                    {
                        ltrVote.Text = dtItem.Rows[0]["Vote_Title"].ToString();
                        dtItem.Columns.Add("VoteItem_Percent");
                        dtItem.Columns.Add("color");
                        for (int i = 0; i < dtItem.Rows.Count; i++)
                        {
                            dtItem.Rows[i]["VoteItem_Percent"] = TotalRate > 0
                                                                     ? Convert.ToInt32(dtItem.Rows[i]["VoteIt_Rate"]) >
                                                                 0
                                                                           ? (Convert.ToInt32(
                                                                                  dtItem.Rows[i]["VoteIt_Rate"]) * 100 /
                                                                              TotalRate) + "%"
                                                                           : "0"
                                                                     : "0";
                            dtItem.Rows[i]["color"] = color[i];
                        }
                        dtItem.AcceptChanges();
                        rptVote.DataSource = dtItem;
                        rptVote.DataBind();
                        ltrTotal.Text = TotalRate.ToString();
                    }

                    //this.Page.RegisterHiddenField("vid", dt.Rows[0]["Vote_ID"].ToString());
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         int       newsID        = Lib.QueryString.AlbumID;
         DataTable dtAlbumDetail = XpcHelper.GetAlbumDetail(newsID, 131);
         if (dtAlbumDetail != null && dtAlbumDetail.Rows.Count > 0)
         {
             rptAlbumDetail.DataSource = dtAlbumDetail;
             rptAlbumDetail.DataBind();
         }
     }
 }
Пример #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dtBonBaiNoiBat = XpcHelper.GetBonBanNoiBat(4, 175);
                if (dtBonBaiNoiBat != null && dtBonBaiNoiBat.Rows.Count > 0)
                {
                    rptBigPic.DataSource = dtBonBaiNoiBat;
                    rptBigPic.DataBind();

                    rptThumbs.DataSource = dtBonBaiNoiBat;
                    rptThumbs.DataBind();
                }
            }
        }
Пример #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int _pageIndex = Lib.QueryString.PageIndex;
                _pageIndex = _pageIndex == 0 ? 1 : _pageIndex;
                _catID     = Lib.QueryString.CategoryID;
                //_catID = Lib.QueryString.ParentCategory==0 ? Lib.QueryString.ParentCategory : Lib.QueryString.CategoryID;
                DataTable objCat = XpcHelper.SelectCategory(_catID);


                if (objCat != null && objCat.Rows.Count > 0)
                {
                    CatName = string.Format("<a title=\"{1}\" href=\"{0}\">{1}</a>", objCat.Rows[0]["Cat_URL"], objCat.Rows[0]["Cat_Name"]);
                    CatRSS  = string.Format("<a title=\"{1}\" target=\"_blank\" class=\"rss\" href=\"{0}\"><img src=\"/images/IconRSS.gif\"/></a>", objCat.Rows[0]["RSS_URL"], objCat.Rows[0]["Cat_Name"]);
                    Utility.SetPageHeader(this.Page, objCat.Rows[0]["Cat_Name"].ToString(), objCat.Rows[0]["Cat_Name"] + "-" + ", " + objCat.Rows[0]["Cat_displayURL"], objCat.Rows[0]["Cat_Name"] + ", " + objCat.Rows[0]["Cat_displayURL"], Lib.QueryString.PageIndex > 1);
                    //Đặt SEO cho Facebook
                    Utility.SetFaceBookSEO(this.Page, objCat.Rows[0]["Cat_Name"].ToString(), objCat.Rows[0]["Cat_Name"] + "-" + ", " + objCat.Rows[0]["Cat_displayURL"], System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + "/images/BannerHome.png", System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + "/" + objCat.Rows[0]["Cat_URL"]);
                }


                DataTable objTintuc = XpcHelper.displayGetDanhSachTin(_catID, _pageIndex, _pageSize, 240);

                if (objTintuc != null && objTintuc.Rows.Count > 0)
                {
                    DataRow dtRow = objTintuc.Rows[0];
                    ltrBigPic.Text = Utility.GetThumbNail(dtRow["News_Title"].ToString(), dtRow["URL"].ToString(), dtRow["News_Image"].ToString(), 600);

                    ltrBigTitle.Text       = "<a href=\"" + dtRow["URL"] + "\">" + dtRow["News_Title"] + "</a>";
                    ltrDateTime.Text       = dtRow["PublishDate"].ToString();
                    ltrBigInitContent.Text = dtRow["News_InitContent"].ToString();

                    DataTable dtData = objTintuc.Clone();
                    for (int i = 1; i < objTintuc.Rows.Count; i++)
                    {
                        dtData.ImportRow(objTintuc.Rows[i]);
                    }

                    rptData.DataSource = dtData;
                    rptData.DataBind();
                }

                Pagging1.TotalPage = XpcHelper.GetDanhSachTin_Count(_catID, _pageSize);
                Pagging1.DoPagging(_pageIndex);
                //Paging1.TotalPage = GVietNamHelper.GetDanhSachTin_Count(_catID, _pageSize);
                //Paging1.DoPagging(_pageIndex);
            }
        }
Пример #10
0
        protected void rptNewsCat_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            Repeater rptSubmenu = (Repeater)e.Item.FindControl("rptSubmenu");

            if (rptSubmenu != null)
            {
                DataTable subMenu =
                    XpcHelper.GetCategoryByParentV2(Convert.ToInt32(DataBinder.Eval(e.Item.DataItem, "Cat_ID")), false,
                                                    1, 1);
                if (subMenu != null && subMenu.Rows.Count > 0)
                {
                    rptSubmenu.DataSource = subMenu;
                    rptSubmenu.DataBind();
                }
            }
        }
Пример #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dtNews = XpcHelper.GetCategoryByParentV2(0, false, 1, 1);

            if (dtNews != null && dtNews.Rows.Count > 0)
            {
                rptNewsCat.DataSource = dtNews;
                rptNewsCat.DataBind();
            }
            int CatID = Lib.QueryString.ParentCategory;

            if (CatID == 0)
            {
                CatID = Lib.QueryString.CategoryID;
            }
            ltrActiveMenu.Text = "<script>ActiveMenu('li" + CatID + "');</script>";
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dtCategory = XpcHelper.GetCategoryDetail(_Cat_ID);
         if (dtCategory != null && dtCategory.Rows.Count > 0)
         {
             ltrCatName.Text = "<a class=\"tab-news\" href=\"" + dtCategory.Rows[0]["Cat_URL"] + "\">" + dtCategory.Rows[0]["Cat_Name"] + "</a>";
         }
         DataTable dtNoiBatMuc = XpcHelper.GetNewsNoiBatMuc(CatId, Top, 175);
         if (dtNoiBatMuc != null)
         {
             rptNewNoiBatMuc.DataSource = dtNoiBatMuc;
             rptNewNoiBatMuc.DataBind();
         }
     }
 }
Пример #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dtNews = XpcHelper.GetCategoryByParentV2(0, false, 1, 1);

            if (dtNews != null && dtNews.Rows.Count > 0)
            {
                rptNewsCat.DataSource = dtNews;
                rptNewsCat.DataBind();
            }

            DataTable dtSiteInformation = XpcHelper.GetSiteInformation(1);

            if (dtSiteInformation != null && dtSiteInformation.Rows.Count > 0)
            {
                ltrFooterContent.Text = dtSiteInformation.Rows[0]["SiteFooter"].ToString();
                ltrAddress.Text       = dtSiteInformation.Rows[0]["SiteAddress"].ToString();
            }
        }
Пример #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = XpcHelper.GetVoteActive();

            if (dt != null && dt.Rows.Count > 0)
            {
                ltrVote.Text = dt.Rows[0]["Vote_Title"].ToString();

                DataTable dtItem = XpcHelper.GetVoteItem(Convert.ToInt32(dt.Rows[0]["Vote_ID"]));
                this.Page.RegisterHiddenField("vid", dt.Rows[0]["Vote_ID"].ToString());
                rptVote.DataSource = dtItem;
                rptVote.DataBind();
            }
            else
            {
                this.Visible = false;
            }
        }
Пример #15
0
 protected void btnBieuQuyet_Click(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         //ok
         ltrScript.Text = "";
         VoteID         = Convert.ToInt32(Request.QueryString["voteid"]);
         if (VoteID != 0)
         {
             XpcHelper.UpdateRateVoteItem(VoteID);
             ltrAlert.Text   = "Bạn đã biểu quyết thành công!";
             divVote.Visible = false;
             divOK.Visible   = true;
             ltrScript.Text  = "<script type=\"text/javascript\" language=\"javascript\">alert('Bạn đã biểu quyết thành công!');this.close();</script>";
         }
     }
     else
     {
         ltrScript.Text = "<script type=\"text/javascript\" language=\"javascript\">alert('Sai mã xác nhận');</script>";
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string Key = Request.QueryString["key"];

                string strKeyword = Key.Replace('"', ' ');
                strKeyword = strKeyword.Replace("'", " ");
                // string[] strKeys = strKeyword.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
                //string strWhere = getAndCond(strKeys);
                DataTable objTintuc = XpcHelper.SearchNews(strKeyword, 1, 10, 240);
                int       Count     = 0;
                if (objTintuc != null && objTintuc.Rows.Count > 0)
                {
                    Count = objTintuc.Rows.Count;

                    rptData.DataSource = objTintuc;
                    rptData.DataBind();
                }
                // ltrCatName.Text = "Có " + Count + " kết quả tìm kiếm";
            }
        }
Пример #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int _pageIndex = Lib.QueryString.PageIndex;
                _pageIndex = _pageIndex == 0 ? 1 : _pageIndex;
                Tag        = Lib.QueryString.Tag;
                //_catID = Lib.QueryString.ParentCategory==0 ? Lib.QueryString.ParentCategory : Lib.QueryString.CategoryID;
                //DataTable objCat = XpcHelper.SelectCategory(_catID);


                //if (objCat != null && objCat.Rows.Count > 0)
                //{
                //    CatName = string.Format("<a title=\"{1}\" href=\"{0}\">{1}</a>", objCat.Rows[0]["Cat_URL"], objCat.Rows[0]["Cat_Name"]);
                //    CatRSS = string.Format("<a title=\"{1}\" target=\"_blank\" class=\"rss\" href=\"{0}\"><img src=\"/images/IconRSS.gif\"/></a>", objCat.Rows[0]["RSS_URL"], objCat.Rows[0]["Cat_Name"]);
                //    Utility.SetPageHeader(this.Page, objCat.Rows[0]["Cat_Name"].ToString(), objCat.Rows[0]["Cat_Name"] + "-" + ", " + objCat.Rows[0]["Cat_displayURL"], objCat.Rows[0]["Cat_Name"] + ", " + objCat.Rows[0]["Cat_displayURL"], Lib.QueryString.PageIndex > 1);
                //    //Đặt SEO cho Facebook
                //    Utility.SetFaceBookSEO(this.Page, objCat.Rows[0]["Cat_Name"].ToString(), objCat.Rows[0]["Cat_Name"] + "-" + ", " + objCat.Rows[0]["Cat_displayURL"], System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + "/images/BannerHome.png", System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + "/" + objCat.Rows[0]["Cat_URL"]);
                //}


                DataTable objTintuc = XpcHelper.GetDanhSachTinByTag(Tag, _pageIndex, _pageSize, 240);

                if (objTintuc != null && objTintuc.Rows.Count > 0)
                {
                    Utility.SetPageHeader(this.Page, Tag, Tag, Tag, Lib.QueryString.PageIndex > 1);
                    //    //Đặt SEO cho Facebook
                    Utility.SetFaceBookSEO(this.Page, Tag, Tag, System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + "/images/BannerHome.png", System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + "/tag/" + Tag);
                    rptData.DataSource = objTintuc;
                    rptData.DataBind();
                }

                //Pagging1.TotalPage = XpcHelper.GetDanhSachTin_Count(_catID, _pageSize);
                //Pagging1.DoPagging(_pageIndex);
                //Paging1.TotalPage = GVietNamHelper.GetDanhSachTin_Count(_catID, _pageSize);
                //Paging1.DoPagging(_pageIndex);
            }
        }
Пример #18
0
 protected void btnSenFeedBack_Click(object sender, EventArgs e)
 {
     XpcHelper.InsertFeedBack(txtName.Value, "1", txtTel.Value, txtEmail.Value, "", "", txtContent.Value);
     Page.RegisterClientScriptBlock("success", "<script>alert(\"Cảm ơn bạn đã gửi ý kiến cho chúng tôi! Chúng tôi sẽ phản hồi sớm nhất có thể.\"); window.location.href=\"home.htm\";</script>");
 }
Пример #19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int       _catID = Lib.QueryString.ParentCategory != 0 ? Lib.QueryString.ParentCategory : Lib.QueryString.CategoryID;
                long      newsID = Lib.QueryString.NewsID;
                DataTable objCat = XpcHelper.SelectCategory(_catID);
                if (objCat != null && objCat.Rows.Count > 0)
                {
                    // CatName = string.Format("<a title=\"{1}\" href=\"{0}\">{1} </a>", objCat.Rows[0]["Cat_URL"], objCat.Rows[0]["Cat_Name"]);
                    Utility.SetPageHeader(this.Page, objCat.Rows[0]["Cat_Name"].ToString(), objCat.Rows[0]["Cat_Name"] + "-" + ", " + objCat.Rows[0]["Cat_displayURL"], objCat.Rows[0]["Cat_Name"] + ", " + objCat.Rows[0]["Cat_displayURL"], Lib.QueryString.PageIndex > 1);
                    //ltrCatName.Text = CatName;
                }
                DataTable detail = XpcHelper.displayMicrof_Detail(newsID);
                string    imgTo;
                if (detail != null && detail.Rows.Count > 0)
                {
                    DataRow row = detail.Rows[0];
                    ltrSapo.Text        = row["News_InitContent"].ToString().Replace("[xevaphongcach.net]", "");
                    ltrTitle.Text       = row["News_Title"].ToString();
                    ltrContent.Text     = row["News_Content"] != null ? row["News_Content"].ToString() : string.Empty;
                    imgTo               = row["News_Image"] != null ? row["News_Image"].ToString().StartsWith("http:") ? row["News_Image"].ToString() : Utility.ImagesStorageUrl + "/" + row["News_Image"].ToString() : "";
                    ltrPublishDate.Text = row["PublishDate"].ToString();
                    //imgBigImage.ImageUrl = imgTo;
                    //imgBigImage.Visible = row["News_Image"].ToString().Length > 0;
                    ltrRelatedNews.Text = row["NewsRelated"] != null && !string.IsNullOrEmpty(row["NewsRelated"].ToString())
                        ? "<div class=\"news-relate\">" + row["NewsRelated"] + "</div>"
                        : string.Empty;

                    if (!string.IsNullOrEmpty(row["Icon"].ToString()))
                    {
                        string   txtTags  = string.Empty;
                        string[] arrayTag = row["Icon"].ToString().Split(',');
                        if (arrayTag.Length > 0)
                        {
                            foreach (string s in arrayTag)
                            {
                                txtTags +=
                                    //"<a title=\"" + s + "\" href=\"/tag/" + Utility.UnicodeToKoDauAndGach(s) + ".htm\"><strong>" + s + "</strong></a>, ";
                                    "<a title=\"" + s + "\" href=\"/tag/" + s.Trim() + ".htm\"><strong>" + s + "</strong></a>, ";
                            }
                            ltrTags.Text = txtTags.TrimEnd(' ').TrimEnd(',');
                        }
                        else
                        {
                            divTags.Visible = false;
                        }
                    }
                    else
                    {
                        divTags.Visible = false;
                    }


                    string Seo_Title   = row["News_Title"].ToString();
                    string Seo_Des     = row["News_InitContent"].ToString();
                    string Seo_KeyWord = !String.IsNullOrEmpty(row["Extension3"].ToString()) ? row["Extension3"].ToString() : "";

                    Utility.SetPageHeaderDetail(this.Page, Seo_Title, objCat.Rows[0]["Cat_Name"].ToString(), Seo_Des, Seo_KeyWord);

                    // Truong hop Title bi thay doi, URL se thay doi theo. Khi đó ta chuyển Link về theo URL mới.
                    Utility.SetCanonicalLink(this.Page, row["NewsURL"].ToString());



                    // Bao cho Google biet la Link đa bi xoa
                    if (String.IsNullOrEmpty(row["News_Title"].ToString()))
                    {
                        Utility.DeletedLinkNotify();
                    }

                    //Đặt SEO cho Facebook
                    Utility.SetFaceBookSEO(this.Page, Seo_Title, Seo_Des, imgTo, System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + row["NewsURL"].ToString());


                    DataTable dtTinKhac = XpcHelper.displayGetTinKhac(10, _catID, newsID, 100);
                    if (dtTinKhac != null && dtTinKhac.Rows.Count > 0)
                    {
                        DataTable dt1 = dtTinKhac.Clone(), dt2 = dtTinKhac.Clone();
                        for (int i = 0; i < dtTinKhac.Rows.Count; i++)
                        {
                            if (i <= 2)
                            {
                                dt1.ImportRow(dtTinKhac.Rows[i]);
                            }
                            else
                            {
                                dt2.ImportRow(dtTinKhac.Rows[i]);
                            }
                        }
                        dt1.AcceptChanges(); dt2.AcceptChanges();


                        rpt3TinKhac.DataSource = dt1;
                        rpt3TinKhac.DataBind();
                        rptTinKhac.DataSource = dt2;
                        rptTinKhac.DataBind();
                    }


                    //DataTable dtTinMoiCapNhat = XpcHelper.displayGetTinMoiCapNhat(10, _catID, newsID);
                    //if (dtTinMoiCapNhat != null && dtTinMoiCapNhat.Rows.Count > 0)
                    //{
                    //    rptTinMoiCapNhat.DataSource = dtTinMoiCapNhat;
                    //    rptTinMoiCapNhat.DataBind();
                    //}
                    //else
                    //{
                    //    divTinMoiCapNhat.Visible = false;
                    //}
                }
            }
        }
Пример #20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!IsPostBack)
                {
                    int _pageIndex = Lib.QueryString.PageIndex;
                    _pageIndex = _pageIndex == 0 ? 1 : _pageIndex;
                    _catID     = Lib.QueryString.CategoryID;

                    long news_ID = Lib.QueryString.NewsID;



                    //_catID = Lib.QueryString.ParentCategory==0 ? Lib.QueryString.ParentCategory : Lib.QueryString.CategoryID;
                    DataTable objCat = XpcHelper.SelectCategory(_catID);


                    if (objCat != null && objCat.Rows.Count > 0)
                    {
                        CatName = string.Format("<a title=\"{1}\" href=\"{0}\">{1}</a>", objCat.Rows[0]["Cat_URL"], objCat.Rows[0]["Cat_Name"]);
                        CatRSS  = string.Format("<a title=\"{1}\" target=\"_blank\" class=\"rss\" href=\"{0}\"><img src=\"/images/IconRSS.gif\"/></a>", objCat.Rows[0]["RSS_URL"], objCat.Rows[0]["Cat_Name"]);
                        Utility.SetPageHeader(this.Page, objCat.Rows[0]["Cat_Name"].ToString(), objCat.Rows[0]["Cat_Name"] + "-" + ", " + objCat.Rows[0]["Cat_displayURL"], objCat.Rows[0]["Cat_Name"] + ", " + objCat.Rows[0]["Cat_displayURL"], Lib.QueryString.PageIndex > 1);
                        //Đặt SEO cho Facebook
                        Utility.SetFaceBookSEO(this.Page, objCat.Rows[0]["Cat_Name"].ToString(), objCat.Rows[0]["Cat_Name"] + "-" + ", " + objCat.Rows[0]["Cat_displayURL"], System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + "/images/BannerHome.png", System.Configuration.ConfigurationManager.AppSettings["WebDomain"] + "/" + objCat.Rows[0]["Cat_URL"]);
                    }

                    if (news_ID != 0)
                    {
                        DataTable detail = XpcHelper.displayMicrof_Detail(news_ID);
                        if (detail != null && detail.Rows.Count > 0)
                        {
                            DataRow dtRow  = detail.Rows[0];
                            string  noHTML = Regex.Replace(dtRow["News_Content"].ToString(), @"<[^>]+>|&nbsp;", "").Trim();
                            ltrBigVideo.Text       = "<iframe width=\"595\" height=\"351\" src=\"" + noHTML + "\" frameborder=\"0\" allowfullscreen=\"\"></iframe>";
                            ltrBigTitle.Text       = dtRow["News_Title"].ToString();
                            ltrDateTime.Text       = dtRow["PublishDate"].ToString();
                            ltrBigInitContent.Text = dtRow["News_InitContent"].ToString();

                            string Seo_Title   = dtRow["News_Title"].ToString();
                            string Seo_Des     = dtRow["News_InitContent"].ToString();
                            string Seo_KeyWord = !String.IsNullOrEmpty(dtRow["Extension3"].ToString()) ? dtRow["Extension3"].ToString() : "";

                            Utility.SetPageHeaderDetail(this.Page, Seo_Title, objCat.Rows[0]["Cat_Name"].ToString(), Seo_Des, Seo_KeyWord);
                        }
                    }
                    DataTable objTintuc = XpcHelper.displayGetDanhSachTin(_catID, 1, 5, 70);
                    if (objTintuc != null && objTintuc.Rows.Count > 0)
                    {
                        if (news_ID == 0)
                        {
                            DataRow dtRow  = objTintuc.Rows[0];
                            string  noHTML = Regex.Replace(dtRow["News_Content"].ToString(), @"<[^>]+>|&nbsp;", "").Trim();
                            ltrBigVideo.Text       = "<iframe width=\"595\" height=\"351\" src=\"" + noHTML + "\" frameborder=\"0\" allowfullscreen=\"\"></iframe>";
                            ltrBigTitle.Text       = dtRow["News_Title"].ToString();
                            ltrDateTime.Text       = dtRow["PublishDate"].ToString();
                            ltrBigInitContent.Text = dtRow["News_InitContent"].ToString();
                        }


                        rptData.DataSource = objTintuc;
                        rptData.DataBind();
                    }

                    DataTable objVideoTongHop = XpcHelper.displayGetDanhSachTin(_catID, _pageIndex, _pageSize, 120);
                    if (objVideoTongHop != null && objVideoTongHop.Rows.Count > 0)
                    {
                        rptListVideo.DataSource = objVideoTongHop;
                        rptListVideo.DataBind();
                    }
                    Pagging.TotalPage = XpcHelper.GetDanhSachTinCount(_catID);
                    Pagging.DoPagging(_pageIndex);
                }
            }
        }