//private void GetHeight() //{ // DataTable table = new DataTable(); // if (AspNetCache.CheckCache("tbl_BannerSlider_Root_" + hddValue.Value) == false) // { // MenuLinksBSO menulinksBSO = new MenuLinksBSO(); // table = menulinksBSO.GetRootMenuLinks(hddValue.Value, Language.language); // AspNetCache.SetCache("tbl_BannerSlider_Root_" + hddValue.Value, table); // } // else // { // table = (DataTable)AspNetCache.GetCache("tbl_BannerSlider_Root_" + hddValue.Value); // } // if (table.Rows.Count > 0) // { // DataRow row = table.Rows[0]; // _height = Convert.ToInt32(row["Height"].ToString()); // } //} private void ViewBanner() { DataTable table = new DataTable(); if (AspNetCache.CheckCache("tbl_BannerSlider_Main_" + hddValue.Value) == false) { MenuLinksBSO menulinksBSO = new MenuLinksBSO(); table = menulinksBSO.GetHotMenuLinks(hddValue.Value, Language.language); AspNetCache.SetCache("tbl_BannerSlider_Main_" + hddValue.Value, table); } else { table = (DataTable)AspNetCache.GetCache("tbl_BannerSlider_Main_" + hddValue.Value); } string strBannerLarger = ""; string strBannerThumb = ""; if (table.Rows.Count > 0) { for (int i = 0; i < table.Rows.Count; i++) { DataRow row = table.Rows[i]; strBannerLarger += "<div class='item " + ((i == 0) ? "active" : "") + "'>"; strBannerLarger += "<img src='" + Utils.getURLThumbImage(row["MenuLinksIcon"].ToString(), Convert.ToInt32(row["Width"])) + "' alt='" + row["MenuLinksName"] + "' > "; if (row["MenuLinksHelp"].ToString() != "") { strBannerLarger += "<div class='container'>"; strBannerLarger += "<div class='carousel-caption'>"; strBannerLarger += "<a href='" + row["MenuLinksUrl"] + "' target='" + row["Target"] + "'>"; strBannerLarger += "<h1>" + row["MenuLinksName"] + "</h1>"; strBannerLarger += "</a>"; strBannerLarger += "<p class='blurb whitealpha hidden-xs'>"; strBannerLarger += row["MenuLinksHelp"] + ""; strBannerLarger += "</p>"; //if (row["MenuLinksUrl"].ToString() != "" & row["MenuLinksUrl"].ToString() != "#") //{ // strBannerLarger += "<p>"; // strBannerLarger += "<a class='btn btn-lg btn-primary' role='button' href='" + row["MenuLinksUrl"] + "' target='" + row["Target"] + "'>Chi tiết... </a>"; // strBannerLarger += "</p>"; //} strBannerLarger += "</div>"; strBannerLarger += "</div>"; } strBannerLarger += "</div>"; // strBannerThumb += "<li><img src='" + Utils.getURLThumbImage(ResolveUrl("~/") + "Upload/MenuLinks/" + row["MenuLinksIcon"] , 70) + "' /></li>"; //strBannerThumb += "<li><img src='" + ResolveUrl("~/") + "img.ashx?url=" + ResolveUrl("~/") + "Upload/MenuLinks/" + row["MenuLinksIcon"] + "&w=70' /></li>"; strBannerThumb += "<li data-target='#sliderBanner' data-slide-to='" + i + "' " + ((i == 0) ? "class='active'" : "") + " ></li>"; } } ltlBannerLarger.Text = strBannerLarger; ltlBannerThumb.Text = strBannerThumb; }
private void ViewBrand() { DataTable table = new DataTable(); if (AspNetCache.CheckCache("BlockAdv_isFlash_1Col_" + hddValue.Value + "_" + Language.language.Replace("-", "_")) == false) { MenuLinksBSO _menulink = new MenuLinksBSO(); table = _menulink.GetHotMenuLinks(hddValue.Value, Language.language); AspNetCache.SetCacheWithTime("BlockAdv_isFlash_1Col_" + hddValue.Value + "_" + Language.language.Replace("-", "_"), table, 150); } else { table = (DataTable)AspNetCache.GetCache("BlockAdv_isFlash_1Col_" + hddValue.Value + "_" + Language.language.Replace("-", "_")); } string strAdv = ""; if (table.Rows.Count > 0) { for (int i = 0; i < table.Rows.Count; i++) { DataRow row = table.Rows[i]; strAdv += "<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 margin-bottom-10px'>"; if (Convert.ToBoolean(row["isFlash"].ToString())) { //is Flash strAdv += "<object width='" + row["width"] + "' height='" + row["height"] + "'>"; strAdv += "<param name='Movie' value='" + row["FileName"] + "'>"; strAdv += "<param name='play' value='true'>"; strAdv += "<param name='quality' value='high'>"; strAdv += "<param name='wmode' value='transparent'>"; strAdv += "<param name='loop' value='true'>"; strAdv += "<param name='menu' value='false'><embed src='" + row["FileName"] + "' width='" + row["width"] + "' height='" + row["height"] + "' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' quality='high' wmode='transparent' loop='true' menu='false'></object>"; } else { strAdv += "<a href='" + row["MenuLinksUrl"] + "' target='" + row["Target"] + " title='" + row["MenuLinksName"] + "'>"; strAdv += "<img src='" + row["MenuLinksIcon"] + "' alt='" + row["MenuLinksName"] + "' />"; strAdv += "</a> <br/>"; strAdv += "<a href='" + row["MenuLinksUrl"] + "' target='" + row["Target"] + " title='" + row["MenuLinksName"] + "' class='mt10 ml10 btn btn-sm rounded btn-info'>"; strAdv += "Xem chi tiết <i class='fa fa-long-arrow-right'></i>"; strAdv += "</a>"; } strAdv += "</div>"; } } ltlAdv.Text = strAdv; }
private void ViewBrand() { if (AspNetCache.CheckCache("BlockAdv_isFlash_2Col_" + hddValue.Value + "_" + Language.language.Replace("-", "_")) == false) { MenuLinksBSO _menulink = new MenuLinksBSO(); DataTable table = _menulink.GetHotMenuLinks(hddValue.Value, Language.language); string strAdv = ""; if (table.Rows.Count > 0) { for (int i = 0; i < table.Rows.Count; i++) { DataRow row = table.Rows[i]; strAdv += "<div style='margin-bottom:10px;'>"; if (Convert.ToBoolean(row["isFlash"].ToString())) { //is Flash strAdv += "<object width='" + row["width"] + "' height='" + row["height"] + "'>"; strAdv += "<param name='Movie' value='" + row["FileName"] + "'>"; strAdv += "<param name='play' value='true'>"; strAdv += "<param name='quality' value='high'>"; strAdv += "<param name='wmode' value='transparent'>"; strAdv += "<param name='loop' value='true'>"; strAdv += "<param name='menu' value='false'><embed src='" + row["FileName"] + "' width='" + row["width"] + "' height='" + row["height"] + "' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' quality='high' wmode='transparent' loop='true' menu='false'></object>"; } else { strAdv += "<a href='" + row["MenuLinksUrl"] + "' target='" + row["Target"] + " title='" + row["MenuLinksName"] + "'>"; strAdv += "<img src='" + row["MenuLinksIcon"] + " width='" + row["Width"] + " height='" + row["Height"] + "' alt='" + row["MenuLinksName"] + "' />"; strAdv += "</a>"; } strAdv += "<div class='clear'>"; strAdv += "</div>"; strAdv += "</div>"; } } AspNetCache.SetCacheWithTime("BlockAdv_isFlash_2Col_" + hddValue.Value + "_" + Language.language.Replace("-", "_"), strAdv, 150); ltlAdv.Text = strAdv; } else { ltlAdv.Text = (string)AspNetCache.GetCache("BlockAdv_isFlash_2Col_" + hddValue.Value + "_" + Language.language.Replace("-", "_")); } }
private void ViewWeblink() { DataTable table = new DataTable(); if (AspNetCache.CheckCache("tbl_Link_notext_hover_col2_" + hddValue.Value) == false) { MenuLinksBSO menulinksBSO = new MenuLinksBSO(); table = menulinksBSO.GetHotMenuLinks(hddValue.Value, Convert.ToInt32(hddRecord.Value), Language.language); AspNetCache.SetCache("tbl_Link_notext_hover_col2_" + hddValue.Value, table); } else { table = (DataTable)AspNetCache.GetCache("tbl_Link_notext_hover_col2_" + hddValue.Value); } rptWeblink.DataSource = table; rptWeblink.DataBind(); }
private DataTable ViewMenuTop(string value) { DataTable table = new DataTable(); if (AspNetCache.CheckCache("Menutop_" + value + "_" + Language.language.Replace("-", "_")) == false) { MenuLinksBSO _menulink = new MenuLinksBSO(); table = _menulink.GetHotMenuLinks(value, Language.language); AspNetCache.SetCacheWithTime("Menutop_" + value + "_" + Language.language.Replace("-", "_"), table, 150); } else { table = (DataTable)AspNetCache.GetCache("Menutop_" + value + "_" + Language.language.Replace("-", "_")); } return(table); }
private void ViewMenuTop() { DataTable table = new DataTable(); if (AspNetCache.CheckCache("Bannertop_" + hddValue3.Value + "_" + Language.language.Replace("-", "_")) == false) { MenuLinksBSO _menulink = new MenuLinksBSO(); table = _menulink.GetHotMenuLinks(hddValue3.Value, 1, Language.language); AspNetCache.SetCacheWithTime("Bannertop_" + hddValue3.Value + "_" + Language.language.Replace("-", "_"), table, 150); } else { table = (DataTable)AspNetCache.GetCache("Bannertop_" + hddValue3.Value + "_" + Language.language.Replace("-", "_")); } rptAdv.DataSource = table; rptAdv.DataBind(); }
private void ViewWeblink() { DataTable table = new DataTable(); if (AspNetCache.CheckCache("Link_textImage" + hddValue.Value + "_" + Language.language.Replace("-", "_")) == false) { MenuLinksBSO menulinksBSO = new MenuLinksBSO(); table = menulinksBSO.GetHotMenuLinks(hddValue.Value, Convert.ToInt32(hddRecord.Value), Language.language); AspNetCache.SetCache("Link_textImage" + hddValue.Value + "_" + Language.language.Replace("-", "_"), table); } else { table = (DataTable)AspNetCache.GetCache("Link_textImage" + hddValue.Value + "_" + Language.language.Replace("-", "_")); } rptWebLink.DataSource = table; rptWebLink.DataBind(); }
private void ViewWeblink() { DataTable table = new DataTable(); if (AspNetCache.CheckCache("HTML_ltlAdvPartner_Main_" + hddValue.Value) == false) { MenuLinksBSO menulinksBSO = new MenuLinksBSO(); table = menulinksBSO.GetHotMenuLinks(hddValue.Value, Language.language); AspNetCache.SetCacheWithTime("HTML_ltlAdvPartner_Main_" + hddValue.Value, table, 150); } else { table = (DataTable)AspNetCache.GetCache("HTML_ltlAdvPartner_Main_" + hddValue.Value); } rptWebLink.DataSource = table; rptWebLink.DataBind(); }
private void ViewBrand() { MenuLinksBSO _menulink = new MenuLinksBSO(); DataTable table = new DataTable(); if (AspNetCache.CheckCache("LinkList_" + hddValue.Value + "_" + Language.language.Replace("-", "_")) == false) { table = _menulink.GetHotMenuLinks(hddValue.Value, Convert.ToInt32(hddRecord.Value), Language.language); AspNetCache.SetCacheWithTime("LinkList_" + hddValue.Value + "_" + Language.language.Replace("-", "_"), table, 150); } else { table = (DataTable)AspNetCache.GetCache("LinkList_" + hddValue.Value + "_" + Language.language.Replace("-", "_")); } rptAdv.DataSource = table; rptAdv.DataBind(); }
private void ViewWeblink() { //lblTitle.Text = ""; DataTable table = new DataTable(); if (AspNetCache.CheckCache("tbl_Link_Image_Text_Scroll" + hddValue.Value) == false) { MenuLinksBSO menulinksBSO = new MenuLinksBSO(); table = menulinksBSO.GetHotMenuLinks(hddValue.Value, Convert.ToInt32(hddRecord.Value), Language.language); AspNetCache.SetCache("tbl_Link_Image_Text_Scroll" + hddValue.Value, table); } else { table = (DataTable)AspNetCache.GetCache("tbl_Link_Image_Text_Scroll" + hddValue.Value); } rptWebLink.DataSource = table; rptWebLink.DataBind(); }
private void ViewWeblink() { DataTable table = new DataTable(); if (AspNetCache.CheckCache("HTML_WebLink_" + hddValue.Value) == false) { MenuLinksBSO menulinksBSO = new MenuLinksBSO(); table = menulinksBSO.GetHotMenuLinks(hddValue.Value, Convert.ToInt32(hddRecord.Value), Language.language); AspNetCache.SetCache("HTML_WebLink_" + hddValue.Value, table); } else { table = (DataTable)AspNetCache.GetCache("HTML_WebLink_" + hddValue.Value); } ddlWeblink.DataSource = table; ddlWeblink.DataTextField = "MenuLinksName"; ddlWeblink.DataValueField = "MenuLinksUrl"; ddlWeblink.DataBind(); }