protected void Page_Load(object sender, EventArgs e) { _zoneCurrent = ZoneUtility.GetZoneCurrent(); lnkZone.Text = ZoneDB.GetZoneNameByID(_zoneCurrent); lnkZone.NavigateUrl = UrlFilter.BuildUrlByZoneID(_zoneCurrent); var source = DistributionDB.GetNewContentByZoneIDNoPage(_zoneCurrent, true, _excludeSpecial); if (source.Rows.Count > 0) { CollectionPager1.DataSource = source.DefaultView; CollectionPager1.BindToControl = rptData; if (AppEnv.GetLanguageFrontEnd() == "vi-VN") { CollectionPager1.LabelText = "Trang: "; } else { CollectionPager1.LabelText = "Page: "; } CollectionPager1.BackText = "<<"; CollectionPager1.PageNumbersSeparator = " "; CollectionPager1.BackNextLinkSeparator = " "; rptData.DataSource = CollectionPager1.DataSourcePaged; rptData.DataBind(); } else { rptData.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { _zoneCurrent = ZoneUtility.GetZoneCurrent(); _itemid = ConvertUtility.ToInt32(Request.QueryString["itemid"]); _distInfo = DistributionDB.GetInfo(_itemid); if (_distInfo == null) { Visible = false; return; } DistributionDB.UpdateView(_distInfo.Distribution_ID, 1); _contentId = _distInfo.Distribution_ContentID; var contentInfo = ContentDB.GetInfo(_contentId); lnkName.Text = contentInfo.Content_Name; lnkName.NavigateUrl = UrlFilter.BuildUrlByItemID(_itemid); lnkZone.Text = ZoneDB.GetZoneNameByID(_zoneCurrent); lnkZone.NavigateUrl = UrlFilter.BuildUrlByZoneID(_zoneCurrent); var strSQL = "SELECT CMS_ContentVideo.*, CMS_Videos.* FROM CMS_ContentVideo "; strSQL += " INNER JOIN CMS_Videos ON CMS_ContentVideo.Video_ID = CMS_Videos.Video_ID "; strSQL += " WHERE 1=1 "; strSQL += " AND CMS_ContentVideo.Content_ID=" + _contentId + " "; strSQL += " AND CMS_Videos.Video_Visible=1 "; strSQL += " ORDER BY CMS_ContentVideo.Priority ASC "; var source = DataHelper.GetDataFromTable(strSQL); if (source.Rows.Count > 0) { rptData.DataSource = source; rptData.DataBind(); } else { rptData.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { _zonecurrent = ZoneUtility.GetZoneCurrent(); lnkZone.Text = ZoneDB.GetZoneNameByID(_zonecurrent); lnkZone.NavigateUrl = UrlFilter.BuildUrlByZoneID(_zonecurrent); var source = ZoneDB.GetByParentID(_zonecurrent); if (source.Rows.Count > 0) { Subcategory_Full_2level1.Visible = true; KhoaHoc_List1.Visible = false; Subcategory_2level_Center1.Visible = true; } else { Subcategory_Full_2level1.Visible = false; KhoaHoc_List1.Visible = true; Subcategory_2level_Center1.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { litDescription.Text = "<meta name=\"description\" content=\"" + AppEnv.MetaDescription + "\">"; litKeyword.Text = "<meta name=\"keywords\" content=\"" + AppEnv.MetaSearch + "\">"; AppEnv.GetLanguageFrontEnd(); string jumpto = ConvertUtility.ToString(Request.QueryString["tab"]); switch (jumpto) { case "zone": PlaceHolder1.Controls.Add(Page.LoadControl("Layout/Zone.ascx")); break; case "content": PlaceHolder1.Controls.Add(Page.LoadControl("Layout/Content.ascx")); break; case "register": PlaceHolder1.Controls.Add(Page.LoadControl("UserControls/Register_Member.ascx")); break; case "active": PlaceHolder1.Controls.Add(Page.LoadControl("UserControls/Active_Member.ascx")); break; case "cart": PlaceHolder1.Controls.Add(Page.LoadControl("UserControls/Cart.ascx")); break; default: PlaceHolder1.Controls.Add(Page.LoadControl("Layout/Home.ascx")); Pageclass = "banner_wrap"; Column_Right1.Visible = false; TuyenSinh_Home1.Visible = true; Home_AloneArea1.Visible = true; break; } int itemid = ConvertUtility.ToInt32(Request.QueryString["itemid"]); if (itemid != 0) { switch (jumpto) { case "tab": litWebTitle.Text = defaultTitle + " - " + DistributionDB.GetNameByDistID(itemid); break; default: litWebTitle.Text = defaultTitle; break; } } else { int zonecurrent = ZoneUtility.GetZoneCurrent(); if (zonecurrent == 0) { litWebTitle.Text = defaultTitle; } else { litWebTitle.Text = defaultTitle + " - " + ZoneDB.GetZoneNameByID(zonecurrent); } } }
protected void Page_Load(object sender, EventArgs e) { _zonecurrent = ZoneUtility.GetZoneCurrent(); litZoneName.Text = ZoneDB.GetZoneNameByID(_zonecurrent); }
protected void Page_Load(object sender, EventArgs e) { _zoneCurrent = ZoneUtility.GetZoneCurrent(); _itemid = ConvertUtility.ToInt32(Request.QueryString["itemid"]); _distInfo = DistributionDB.GetInfo(_itemid); if (_distInfo == null) { Visible = false; return; } DistributionDB.UpdateView(_distInfo.Distribution_ID, 1); _contentId = _distInfo.Distribution_ContentID; var contentInfo = ContentDB.GetInfo(_contentId); lnkName.Text = contentInfo.Content_Name; lnkName.NavigateUrl = UrlFilter.BuildUrlByItemID(_itemid); lnkZone.Text = ZoneDB.GetZoneNameByID(_zoneCurrent); lnkZone.NavigateUrl = UrlFilter.BuildUrlByZoneID(_zoneCurrent); var strSQL = "SELECT CMS_ContentImage.*, CMS_Images.* FROM CMS_ContentImage "; strSQL += " INNER JOIN CMS_Images ON CMS_ContentImage.Image_ID = CMS_Images.Image_ID "; strSQL += " WHERE 1=1 "; strSQL += " AND CMS_ContentImage.Content_ID=" + _contentId + " "; strSQL += " AND CMS_Images.Image_Visible=1 "; strSQL += " ORDER BY CMS_ContentImage.Priority ASC "; var source = DataHelper.GetDataFromTable(strSQL); if (source.Rows.Count > 0) { CollectionPager1.DataSource = source.DefaultView; CollectionPager1.BindToControl = rptData; if (AppEnv.GetLanguageFrontEnd() == "vi-VN") { CollectionPager1.LabelText = "Trang: "; } else { CollectionPager1.LabelText = "Page: "; } CollectionPager1.BackText = "<<"; CollectionPager1.PageNumbersSeparator = " "; CollectionPager1.BackNextLinkSeparator = " "; rptData.DataSource = CollectionPager1.DataSourcePaged; rptData.DataBind(); } else { rptData.Visible = false; } }