Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // Try to detect current namespace and page
            currentNamespace    = Tools.DetectCurrentNamespace();
            currentPageFullName = Tools.DetectCurrentPage(true);
            currentWiki         = Tools.DetectCurrentWiki();

            lblStrings.Text = string.Format("<script type=\"text/javascript\">\r\n<!--\r\n__BaseName = \"{0}\";\r\n__ConfirmMessage = \"{1}\";\r\n// -->\r\n</script>",
                                            CphMaster.ClientID + "_", Properties.Messages.ConfirmOperation);

            PrintHtmlHead();
            PrintHeader();
            PrintSidebar();
            PrintFooter();
            PrintPageHeaderAndFooter();
        }
Esempio n. 2
0
 /// <summary>
 /// Detects the correct <see cref="T:PageInfo" /> object associated to the current page using the <b>Page</b> and <b>NS</b> parameters in the query string.
 /// </summary>
 /// <param name="loadDefault"><c>true</c> to load the default page of the specified namespace when <b>Page</b> is not specified, <c>false</c> otherwise.</param>
 /// <returns>If <b>Page</b> is specified and exists, the correct <see cref="T:PageContent" />, otherwise <c>null</c> if <b>loadDefault</b> is <c>false</c>,
 /// or the <see cref="T:PageContent" /> object representing the default page of the specified namespace if <b>loadDefault</b> is <c>true</c>.</returns>
 protected string DetectPage(bool loadDefault)
 {
     return(Tools.DetectCurrentPage(loadDefault));
 }