//Search online modules. public string GetSearchModules(string searchKey) { string SageVersion = string.Empty; SageFrameVersion app = new SageFrameVersion(); SageVersion = string.Format("{0}", app.FormatShortVersion(app.Version, true)); string ModuleList = string.Empty; string[] args = new string[2]; args[0] = searchKey; args[1] = SageVersion; string service = "WebService"; string method = "GetSearchResult"; string url = ModuleURl; try { WebServiceInvoker invoker = new WebServiceInvoker( new Uri(url)); return(ModuleList = invoker.InvokeMethod <string>(service, method, args)); } catch (Exception) { return(ModuleList = string.Empty); } }
protected void Page_Load(object sender, EventArgs e) { appPath = GetApplicationName; Extension = SageFrameSettingKeys.PageExtension; UserName = GetUsername; PortalID = GetPortalID; PortalName = GetPortalSEOName; SageFrameConfig sfConfig = new SageFrameConfig(); bool ShowSideBar = sfConfig.GetSettingBoolValueByIndividualKey(SageFrameSettingKeys.ShowSideBar); IsSideBarVisible = ShowSideBar ? 1 : 0; BuildQuickLinks(); //lblVersion.Text = string.Format("V {0}", Config.GetSetting("SageFrameVersion")); SageFrameVersion app = new SageFrameVersion(); lblVersion.Text = string.Format("V {0}", app.FormatShortVersion(app.Version, true)); }