Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]);
                width = Request.QueryString["w"];

                DataTable cpConfig = WapController.Setting_Category_GetAllByParentIDHasCache(32, 74); //39, 90);//
                if (cpConfig != null && cpConfig.Rows.Count > 0)
                {
                    for (int i = 0; i < cpConfig.Rows.Count; i++)
                    {
                        if ((int)cpConfig.Rows[i]["WAP_ID"] == 33)
                        {
                            cpConfig.Rows[i]["WAP_ID"] = 40;
                            cpConfig.AcceptChanges();
                            break;
                        }
                    }
                }
                rptLienket.DataSource     = cpConfig;
                rptLienket.ItemDataBound += rptLienket_ItemDataBound;
                rptLienket.DataBind();
                //end of lienket
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]).ToString();
            width = Request.QueryString["w"];
            DataTable cpConfig = WapController.Setting_Category_GetAllByParentIDHasCache(0, 74);

            if (lang == "1")
            {
                lnkTrangChu.Text = Resources.Resource.wTrangChu;
            }
            else
            {
                lnkTrangChu.Text = Resources.Resource.wTrangChu_KD;
            }
            lnkTrangChu.NavigateUrl = UrlProcess.GetWapHomeUrlNew(lang, width);

            DataTable dt = WapController.CPConfig_GetByWap_IDHasCache((int)cpConfig.Rows[0]["WAP_ID"]);

            if (dt.Rows.Count > 0)
            {
                rptTruyCapNhanh.DataSource     = dt;
                rptTruyCapNhanh.ItemDataBound += rptTruyCapNhanh_ItemDataBound;
                rptTruyCapNhanh.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lang  = Request.QueryString["lang"];
                width = Request.QueryString["w"];
                if (width == "0")
                {
                    width = Constant.DefaultScreen.Standard.ToString();
                }

                DataTable cpConfig = WapController.Setting_Category_GetAllByParentIDHasCache(2, 90);
                rptLienket.DataSource     = cpConfig;
                rptLienket.ItemDataBound += new RepeaterItemEventHandler(rptLienket_ItemDataBound);
                rptLienket.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lang  = Request.QueryString["lang"];
                width = Request.QueryString["w"];

                DataTable cpConfig = WapController.Setting_Category_GetAllByParentIDHasCache(2, 90);//25, 74);
                rptLienket.DataSource     = cpConfig;
                rptLienket.ItemDataBound += new RepeaterItemEventHandler(rptLienket_ItemDataBound);
                rptLienket.DataBind();
                //end of lienket
            }
            if (lang == "1")
            {
                lnkLienket.Text = "LIÊN KẾT";
            }
            lnkLienket.NavigateUrl = UrlProcess.GetVNMLienket(lang, width, "lk");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lang  = Request.QueryString["lang"];
                width = Request.QueryString["w"];

                DataTable cpConfig = WapController.Setting_Category_GetAllByParentIDHasCache(32, 74);//39, 90);//
                //if (cpConfig != null && cpConfig.Rows.Count > 0)
                //{
                //    for (int i = 0; i < cpConfig.Rows.Count; i++)
                //    {
                //        if ((int)cpConfig.Rows[i]["WAP_ID"] == 33)
                //        {
                //            cpConfig.Rows[i]["WAP_ID"] = 40;
                //            cpConfig.AcceptChanges();
                //            break;
                //        }
                //    }
                //}
                rptLienket.DataSource     = cpConfig;
                rptLienket.ItemDataBound += rptLienket_ItemDataBound;
                rptLienket.DataBind();
                //end of lienket

                int       totalrecord1;
                DataTable dtTinTongHop = WapXzone_VNM.Library.Component.Tintuc.TintucController.GetAllNewsByCategory(ConvertUtility.ToInt32(System.Configuration.ConfigurationSettings.AppSettings.Get("tintonghop")), 1, 1, out totalrecord1);
                if (dtTinTongHop.Rows.Count > 0)
                {
                    if (lang == "1")
                    {
                        ltrNhom.Text  = "<a href=\"" + "../" + UrlProcess.GetNewsCategoryUrl(lang.ToString(), width, System.Configuration.ConfigurationSettings.AppSettings.Get("tintonghop")).Replace("~/", "") + "\" >HOTNEWS</a>";
                        ltrDonvi.Text = " - <a href=\"" + "../" + UrlProcess.GetNewsDetailUrl(lang.ToString(), "detail", width, dtTinTongHop.Rows[0]["Distribution_ID"].ToString()).Replace("~/", "") + "\" >" + dtTinTongHop.Rows[0]["Content_Headline"].ToString() + "</a>";;
                    }
                    else
                    {
                        ltrNhom.Text  = "<a href=\"" + "../" + UrlProcess.GetNewsCategoryUrl(lang.ToString(), width, System.Configuration.ConfigurationSettings.AppSettings.Get("tintonghop")).Replace("~/", "") + "\" >HOTNEWS</a>";
                        ltrDonvi.Text = " - <a href=\"" + "../" + UrlProcess.GetNewsDetailUrl(lang.ToString(), "detail", width, dtTinTongHop.Rows[0]["Distribution_ID"].ToString()).Replace("~/", "") + "\" >" + dtTinTongHop.Rows[0]["Content_HeadlineKD"].ToString() + "</a>";;
                    }
                }
            }
            lnkLienket.NavigateUrl = "";//UrlProcess.GetVNMHomeUrl(lang, width, "links");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                lang  = Request.QueryString["lang"];
                width = Request.QueryString["w"];

                var advertisement1 = new Advertisement {
                    Channel = "Home", Position = "UnderLinks", Param = 0, Lang = lang, Width = width.ToString()
                };
                litAds1.Text = advertisement1.GetAds();

                DataTable cpConfig = WapController.Setting_Category_GetAllByParentIDHasCache(2, 90);//25, 74);
                if (cpConfig != null && cpConfig.Rows.Count > 0)
                {
                    rptLienKet.DataSource     = cpConfig;
                    rptLienKet.ItemDataBound += rptLienket_ItemDataBound;
                    rptLienKet.DataBind();
                }
            }
        }
Example #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]).ToString();
            width = Request.QueryString["w"];
            DataTable cpConfig = WapController.Setting_Category_GetAllByParentIDHasCache(0, 74);

            if (lang == "1")
            {
                ltrNhom.Text     = cpConfig.Rows[0]["WAP_CategoryTitleUnicode"].ToString();
                lnkTrangChu.Text = "<span class=\"pink bold\">" + Resources.Resource.wTrangChu + "</span>";
            }
            else
            {
                ltrNhom.Text     = cpConfig.Rows[0]["WAP_CategoryTitle"].ToString();
                lnkTrangChu.Text = "<span class=\"pink bold\">" + Resources.Resource.wTrangChu_KD + "</span>";
            }
            lnkTrangChu.NavigateUrl = UrlProcess.GetWapHomeUrl(lang, width);
            //
            rptLienket.DataSource     = WapController.CPConfig_GetByWap_IDHasCache((int)cpConfig.Rows[0]["WAP_ID"]);
            rptLienket.ItemDataBound += new RepeaterItemEventHandler(rptLienket_ItemDataBound);
            rptLienket.DataBind();
        }
Example #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]).ToString();
            width = Request.QueryString["w"];
            DataTable cpConfig = WapController.Setting_Category_GetAllByParentIDHasCache(0, 74);

            if (cpConfig != null && cpConfig.Rows.Count > 3)
            {
                if (lang == "1")
                {
                    ltrNhom.Text = cpConfig.Rows[3]["WAP_CategoryTitleUnicode"].ToString();
                }
                else
                {
                    ltrNhom.Text = cpConfig.Rows[3]["WAP_CategoryTitle"].ToString();
                }
                //
                rptLienket.DataSource     = WapController.CPConfig_GetByWap_IDHasCache((int)cpConfig.Rows[3]["WAP_ID"]);
                rptLienket.ItemDataBound += new RepeaterItemEventHandler(rptLienket_ItemDataBound);
                rptLienket.DataBind();
            }
        }