/// <summary> /// Check whether the specific tab is a host tab. /// </summary> /// <param name="tabId">tab id.</param> /// <returns>if true means the tab is a host tab, otherwise means not a host page.</returns> public static bool IsHostTab(int tabId) { bool isHostTab = false; TabCollection hostTabs = new TabController().GetTabsByPortal(Null.NullInteger); if (hostTabs != null) { isHostTab = hostTabs.Any(t => t.Value.TabID == tabId); } return isHostTab; }