protected void Page_Load(object sender, EventArgs e) { ModuleServicePath = ResolveUrl("~") + "Modules/AspxCommerce/AspxCommerceServices/"; IncludeJs("SimpleSearchSettingJS", "/Modules/AspxCommerce/AspxGeneralSearch/js/SimpleSearchSetting.js"); AspxCommonInfo aspxCommonObj = new AspxCommonInfo(GetStoreID, GetPortalID, GetCurrentCultureName); if (!IsPostBack) { SearchSettingInfo objSettingInfo = AspxSearchController.GetSearchSetting(aspxCommonObj); ShowCategoryForSearch = objSettingInfo.ShowCategoryForSearch; EnableAdvanceSearch = objSettingInfo.EnableAdvanceSearch; ShowSearchKeyWord = objSettingInfo.ShowSearchKeyWord; } IncludeLanguageJS(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ModuleServicePath = ResolveUrl("~") + "Modules/AspxCommerce/AspxCommerceServices/"; aspxCommonObj.StoreID = GetStoreID; aspxCommonObj.PortalID = GetPortalID; aspxCommonObj.CultureName = GetCurrentCultureName; SearchSettingInfo objSettingInfo = AspxSearchController.GetSearchSetting(aspxCommonObj); ShowCategoryForSearch = objSettingInfo.ShowCategoryForSearch; EnableAdvanceSearch = objSettingInfo.EnableAdvanceSearch; ShowSearchKeyWord = objSettingInfo.ShowSearchKeyWord; } IncludeLanguageJS(); }
protected void Page_Load(object sender, EventArgs e) { try { SageFrameConfig pagebase = new SageFrameConfig(); StoreSettingConfig ssc = new StoreSettingConfig(); IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls); if (!IsPostBack) { IncludeCss("SimpleSearch", "/Templates/" + TemplateName + "/css/JQueryUIFront/jquery.ui.all.css"); IncludeJs("SimpleSearch", "/js/JQueryUI/jquery-ui-1.8.10.custom.js", "/Modules/AspxCommerce/AspxGeneralSearch/js/SimpleSearch.js"); StoreID = GetStoreID; PortalID = GetPortalID; UserName = GetUsername; CultureName = GetCurrentCultureName; IncludeLanguageJS(); AdvanceSearchURL = ssc.GetStoreSettingsByKey(StoreSetting.AdvanceSearchURL, StoreID, PortalID, CultureName); AspxCommonInfo aspxCommonObj = new AspxCommonInfo(); aspxCommonObj.StoreID = StoreID; aspxCommonObj.PortalID = PortalID; aspxCommonObj.CultureName = CultureName; SearchSettingInfo objSettingInfo = AspxSearchController.GetSearchSetting(aspxCommonObj); ShowCategoryForSearch = objSettingInfo.ShowCategoryForSearch; EnableAdvanceSearch = objSettingInfo.EnableAdvanceSearch; ShowSearchKeyWords = objSettingInfo.ShowSearchKeyWord; ResultPage = ssc.GetStoreSettingsByKey(StoreSetting.DetailPageURL, StoreID, PortalID, CultureName); } if (ShowCategoryForSearch.ToLower() == "true") { GetAllCategoryForSearch(); } if (ShowSearchKeyWords.ToLower() == "true") { GetTopSearchTerms(); } IncludeLanguageJS(); } catch (Exception ex) { ProcessException(ex); } }