protected void Page_Load(object sender, EventArgs e) { const string boxtname = "tuyensinhhome"; var zoneid = ConvertUtility.ToInt32(ZoneDB.GetIDByFriendlyUrl(boxtname)); if (zoneid <= 0) { return; } var info = ZoneDB.GetInfo(zoneid); if (info == null) { return; } lnkOther.NavigateUrl = UrlFilter.BuildUrlByZoneID(info.Zone_ParentID); string lang = AppEnv.GetLanguageFrontEnd(); var zoneClassRegister = ConvertUtility.ToInt32(SettingDB.GetValue(AppEnv.CMS_ZoneClassRegister + lang)); lnkRegister.NavigateUrl = UrlFilter.BuildUrlByZoneID(zoneClassRegister); var dtData = DistributionDB.GetContentByZoneIDselfAndNumberRecord(zoneid, 10); if (dtData.Rows.Count <= 0) { return; } rptData.DataSource = dtData; rptData.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { const string boxtname = "homebottomright"; var zoneid = ConvertUtility.ToInt32(ZoneDB.GetIDByFriendlyUrl(boxtname)); if (zoneid <= 0) { return; } var info = ZoneDB.GetInfo(zoneid); if (info == null) { return; } var realUrl = (info.Zone_RealUrl); if (realUrl.Length > 0) { lnkOther.NavigateUrl = realUrl; } else { lnkOther.NavigateUrl = UrlFilter.BuildUrlByZoneID(info.Zone_ParentID); } var dtSpecial = DistributionDB.GetContentByZoneIDAndRank(zoneid, 1, (int)AppEnv.CMSContentRank.Special); if (dtSpecial.Rows.Count > 0) { rptSpecial.DataSource = dtSpecial; rptSpecial.DataBind(); } var dtData = DistributionDB.GetContentByZoneIDAndRank(zoneid, 3, (int)AppEnv.CMSContentRank.Default); if (dtData.Rows.Count <= 0) { return; } rptData.DataSource = dtData; rptData.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { const string boxtname = "addresshome"; var zoneid = ConvertUtility.ToInt32(ZoneDB.GetIDByFriendlyUrl(boxtname)); if (zoneid <= 0) { return; } var info = ZoneDB.GetInfo(zoneid); if (info == null) { return; } litContent.Text = info.Zone_Description; }
protected void Page_Load(object sender, EventArgs e) { const string boxtname = "tuyensinhtrangtrong"; var zoneid = ConvertUtility.ToInt32(ZoneDB.GetIDByFriendlyUrl(boxtname)); if (zoneid <= 0) { return; } var info = ZoneDB.GetInfo(zoneid); if (info == null) { return; } //litName.Text = info.Zone_Name; litContent.Text = info.Zone_Description; }
protected void Page_Load(object sender, EventArgs e) { const string boxtname = "homebottomcenter"; var zoneid = ConvertUtility.ToInt32(ZoneDB.GetIDByFriendlyUrl(boxtname)); if (zoneid <= 0) { return; } var info = ZoneDB.GetInfo(zoneid); if (info == null) { return; } var avatar = info.Zone_Avatar; if (avatar.Length > 0) { imgAvatar.ImageUrl = UrlFilter.BuildImageUrl(avatar, 235, 0); } else { imgAvatar.Visible = false; } lnkName.Text = info.Zone_Name; var realUrl = info.Zone_RealUrl; if (realUrl.Length > 0) { lnkOther.NavigateUrl = lnkName.NavigateUrl = realUrl; } else { lnkOther.NavigateUrl = lnkName.NavigateUrl = UrlFilter.BuildUrlByZoneID(info.Zone_ParentID); } }
protected void Page_Load(object sender, EventArgs e) { const string boxtname = "homebottomleft"; var zoneid = ConvertUtility.ToInt32(ZoneDB.GetIDByFriendlyUrl(boxtname)); if (zoneid <= 0) { return; } var info = ZoneDB.GetInfo(zoneid); if (info == null) { return; } lnkZoneName.Text = info.Zone_Name; var realUrl = (info.Zone_RealUrl); if (realUrl.Length > 0) { lnkMore.NavigateUrl = lnkZoneName.NavigateUrl = realUrl; } else { lnkMore.NavigateUrl = lnkZoneName.NavigateUrl = UrlFilter.BuildUrlByZoneID(info.Zone_ParentID); } var dtData = DistributionDB.GetContentByZoneIDselfAndNumberRecord(zoneid, 2); if (dtData.Rows.Count <= 0) { return; } rptData.DataSource = dtData; rptData.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { const string boxtname = "subvideo"; var zoneid = ConvertUtility.ToInt32(ZoneDB.GetIDByFriendlyUrl(boxtname)); if (zoneid <= 0) { return; } var info = ZoneDB.GetInfo(zoneid); if (info == null) { return; } lnkName.Text = info.Zone_Name; var realUrl = (info.Zone_RealUrl); if (realUrl.Length > 0) { lnkName.NavigateUrl = realUrl; } else { lnkName.NavigateUrl = UrlFilter.BuildUrlByZoneID(info.Zone_ParentID); } var dtSpecial = DistributionDB.GetContentRandomByZoneIDselfAndNumberRecord(zoneid, 1); if (dtSpecial.Rows.Count > 0) { rptSpecial.DataSource = dtSpecial; rptSpecial.DataBind(); } }