/// ----------------------------------------------------------------------------- /// <summary> /// Page_Load runs when the control is loaded /// </summary> /// ----------------------------------------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { try { if (CultureInfo.CurrentCulture.Name != "en-GB") rdbtnlst_RejectionReasons.DataTextField = "description-" + CultureInfo.CurrentCulture.Name; if (!UserInfo.IsInRole("Administrator") && !UserInfo.IsInRole("Collaborator")) { lnkbtn_ApproveThread.Visible = false; lnkbtn_RejectThread.Visible = false; } if (Request.QueryString["threadid"] != null) { int threadId = Convert.ToInt32(Request.QueryString["threadid"]); Ourspace_Utilities.View util = new Ourspace_Utilities.View(); if (util.GetPhaseId(threadId) > 1) { lblPhase1Instructions.Visible = false; lblPhase2Instructions.Visible = true; hprlnk_GoToCurrentThreadPhase.NavigateUrl = util.GetTopicCurrentPhaseUrl(Request.QueryString["facebook"] != null, threadId, CultureInfo.CurrentCulture.Name); hprlnk_GoToCurrentThreadPhase.Visible = true; // We also hide the Collaborator buttons for moving topic to phase 2 lnkbtn_ApproveThread.Visible = false; lnkbtn_RejectThread.Visible = false; } else { lblPhase1Instructions.Visible = true; lblPhase2Instructions.Visible = false; hprlnk_GoToCurrentThreadPhase.Visible = false; } } } catch (Exception exc) //Module failed to load { Exceptions.ProcessModuleLoadException(this, exc); } }