/// ----------------------------------------------------------------------------- /// <summary> /// BindSearchResults gets the Search Results Modules available and binds them to the /// drop-down combo /// </summary> /// <remarks> /// </remarks> /// <history> /// [cnurse] 11/30/2004 converted to SettingsBase /// </history> /// ----------------------------------------------------------------------------- private void BindSearchResults() { var objSearch = new SearchInputController(); cboModule.DataSource = objSearch.GetSearchResultModules(PortalId); cboModule.DataTextField = "SearchTabName"; cboModule.DataValueField = "TabID"; cboModule.DataBind(); if (cboModule.Items.Count < 2) { cboModule.Visible = false; txtModule.Visible = true; } else { cboModule.Visible = true; txtModule.Visible = false; } }
/// <summary> /// BindSearchResults gets the Search Results Modules available and binds them to the /// drop-down combo /// </summary> /// <history> /// [cnurse] 11/30/2004 converted to SettingsBase /// </history> private void BindSearchResults() { SearchInputController objSearch = new SearchInputController(); cboModule.DataSource = objSearch.GetSearchResultModules( PortalId ); cboModule.DataTextField = "SearchTabName"; cboModule.DataValueField = "TabID"; cboModule.DataBind(); if( cboModule.Items.Count < 2 ) { cboModule.Visible = false; txtModule.Visible = true; } else { cboModule.Visible = true; txtModule.Visible = false; } }