/// <summary> /// Determines which links should be displayed to the end user. /// </summary> private void DetermineVisibility() { //if (ModContext.PortalSettings.UserId <= 0) //{ // hlMyDashboard.Visible = false; //} switch (ControlView.ToLower()) { case "termsynonyms": hlTags.CssClass = "qaNavSel"; break; case "question": hlQuestions.CssClass = "qaNavSel"; break; case "browse": if (Unanswered) { hlUnanswered.CssClass = "qaNavSel"; } else { hlQuestions.CssClass = "qaNavSel"; } if (Keyword.Length > 0) { txtSearch.Text = Keyword; } break; case "ask": //hlAskQuestion.CssClass = "qaNavSel"; break; case "tags": hlTags.CssClass = "qaNavSel"; break; case "termdetail": hlTags.CssClass = "qaNavSel"; break; case "subscriptions": break; case "termhistory": hlTags.CssClass = "qaNavSel"; break; case "editterm": hlTags.CssClass = "qaNavSel"; break; case "posthistory": break; case "privileges": break; case "badges": hlBadges.CssClass = "qaNavSel"; break; case "badge": hlBadges.CssClass = "qaNavSel"; break; default: hlHome.CssClass = "qaNavSel"; break; } }