private void LoadData()
 {
     try
     {
         string          Lang  = Globals.GetLang();
         int             ID    = Globals.GetIntFromQueryString("ID");
         int             CatID = Globals.GetIntFromQueryString("CatID");
         MyTool.Article  obj   = new MyTool.Article();
         ArticleCategory objC  = new ArticleCategory();
         DataSet         ds    = obj.GetArticleByArticleID("Article", ID, Lang);
         lblSubject.InnerText  = objC.GetCategoryNameByCategoryID(CatID, Lang);
         Page.Title           += " - " + Convert.ToString(ds.Tables[0].Rows[0]["Title"]);
         lblTitle.InnerText    = Convert.ToString(ds.Tables[0].Rows[0]["Title"]);
         lblExcerpt.InnerText  = Convert.ToString(ds.Tables[0].Rows[0]["Excerpt"]);
         lblContent.InnerHtml  = Convert.ToString(ds.Tables[0].Rows[0]["Content"]);
         lblPostDate.InnerText = Globals.GetStringDateTime(Lang, Convert.ToDateTime(Convert.ToString(ds.Tables[0].Rows[0]["PostDate"])));
         lblAuthors.InnerText  = Convert.ToString(ds.Tables[0].Rows[0]["Authors"]);
         string ImageURL = Convert.ToString(ds.Tables[0].Rows[0]["ImageURL"]);
         if (Globals.IsFileExistent(ImageURL))
         {
             img.Width  = _imageWidth;
             img.Height = _imageHeight;
             img.Src    = Globals.ApplicationPath + "Thumbnail.ashx?width=" + _imageWidth + "&height=" + _imageHeight + "&ImgFilePath=" + Globals.GetUploadsUrl() + ImageURL;
         }
         else
         {
             div_img_article.Attributes.Add("style", "display:none;");
             divDetailSumary.Attributes.Add("style", "width:90%;");
         }
     }
     catch
     {
         //Response.Redirect(Globals.ApplicationPath);
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        Lang = Globals.GetLang();
        string      t       = Globals.GetStringFromQueryString("t");
        LanguageXML langXml = new LanguageXML("Language" + Lang);

        if (!IsPostBack)
        {
            ArticleCategory objCate = new ArticleCategory();
            int             CatID   = Globals.GetIntFromQueryString("CatID");
            string          Text    = Globals.GetStringFromQueryString("Text");
            if (CatID == -1)
            {
                if (Text != "")
                {
                    lblSubject.InnerText = "Kết quả tìm kiếm";
                }
                if (t == "news")
                {
                    lblSubject.InnerText = langXml.GetString("Web", "MenuTop", "News");
                }
                else if (t == "agent")
                {
                    lblSubject.InnerText = langXml.GetString("Web", "MenuTop", "Agent");
                }
                else if (t == "promotion")
                {
                    lblSubject.InnerText = langXml.GetString("Web", "MenuTop", "Promotion");
                }
                else if (t == "service")
                {
                    lblSubject.InnerText = langXml.GetString("Web", "MenuTop", "Service");
                }
                else if (t == "project")
                {
                    lblSubject.InnerText = langXml.GetString("Web", "MenuTop", "Project");
                }
                else if (t == "showroom")
                {
                    lblSubject.InnerText = "Hệ thống phân phối";
                }
                else if (t == "job")
                {
                    lblSubject.InnerText = langXml.GetString("Web", "MenuTop", "Employment");
                }
                else if (t == "text")
                {
                    lblSubject.InnerText = "Văn bản";
                }
                else if (t == "menu")
                {
                    lblSubject.InnerText = "Thực đơn";
                }
                else if (t == "medicine")
                {
                    lblSubject.InnerText = "Y học - Nghiên cứu";
                }
                else if (t == "music")
                {
                    lblSubject.InnerText = "Âm nhạc";
                }
                else if (t == "blog")
                {
                    lblSubject.InnerText = "Khoảnh khắc";
                }
                else if (t == "fun")
                {
                    lblSubject.InnerText = "Góc giải trí";
                }
                else if (t == "guestbook")
                {
                    lblSubject.InnerText = "Lưu bút";
                }
            }
            else //theo CatID
            {
                lblSubject.InnerText = objCate.GetCategoryNameByCategoryID(CatID, Lang);
            }
            Page.Title += " - " + lblSubject.InnerText;
            LoadListNews(t);
        }
    }