protected override void OnLoad(EventArgs e)
    {
        explorer.Target = rightPane;

        if (!Page.IsPostBack)
        {
            explorer.ContentPaneClientID = rightPane.ClientID;

            //menu_top.ContentPaneClientID = rightPane.ClientID;
            //personalmenu.ContentPaneClientID = rightPane.ClientID;
            //set_targets(rad_left_panel_bar.Items);

            // get user permissions
            qPtl_User user = new qPtl_User(Convert.ToInt32(Context.Items["UserID"]));
            string highest_role = Convert.ToString(user.HighestRole);
            qPtl_ManagerPermission_View permission = new qPtl_ManagerPermission_View(highest_role);

            // see if need to advance to pre-loaded page
            string action = Convert.ToString(Request.QueryString["topic"]);
            if (!String.IsNullOrEmpty(action))
                rightPane.ContentUrl = "~/manage/help/help-viewer.aspx?topic=" + action;

        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            btnClose.Visible = false;

            string css_text_file = string.Empty;
            if (!String.IsNullOrEmpty(ConfigurationManager.AppSettings["CmsTextCSS"]))
                css_text_file = Convert.ToString(ConfigurationManager.AppSettings["CmsTextCSS"]);

            reContent.CssFiles.Add(css_text_file);

            if (!String.IsNullOrEmpty(Convert.ToString(Request.QueryString["topic"])))
            {
                string topic = Convert.ToString(Request.QueryString["topic"]);
                var help_topic = qHlp_HelpTopic.GetHelpTopicByTitle(topic);

                lblTitle.Text = help_topic.Title;
                litSummary.Text = "Summary: " + help_topic.Summary;
                litKeywords.Text = "Keywords: " + help_topic.Keywords;
                litBody.Text = help_topic.Body;

                txtTitle.Text = help_topic.Title;
                txtSummary.Text = help_topic.Summary;
                txtKeywords.Text = help_topic.Keywords;
                reContent.Content = help_topic.Body;
                plhEditHelp.Visible = false;

                string rawURL = Request.Url.ToString();
                string passURL = Server.UrlEncode(rawURL);
                hplPrint.NavigateUrl = "~/qDbs/GeneratePDF.aspx?PageOrientation=landscape&htmlSource=" + passURL + "&mode=read&pdfOutput=QuartzHelp_" + topic + ".pdf";
                hplPrint.Target = "_blank";
            }

            qPtl_User user = new qPtl_User(Convert.ToInt32(Context.Items["UserID"]));
            string highest_role = Convert.ToString(user.HighestRole);
            qPtl_ManagerPermission_View permission = new qPtl_ManagerPermission_View(highest_role);

            if (permission != null)
            {
                if (permission.ManagerPermissionID > 0)
                {
                    if (permission.Help.Contains("Admin") || permission.Help.Contains("Author"))
                    {
                        divEdit.Visible = true;

                        if (Convert.ToString(Request.QueryString["mode"]) == "edit")
                        {
                            plhEditHelp.Visible = true;
                            plhViewHelp.Visible = false;
                        }
                    }
                }
            }
        }
    }