Exemple #1
0
 private void loadNodeTemplate()
 {
     if (Request.QueryString["nodeID"] != null)
     {
         int  nodeID      = int.Parse(Request.QueryString["nodeID"]);
         Node currentNode = NodeFactory.RootNode.Find(nodeID);
         nodeTemplateHolder.Controls.Add(TemplateLoader.GetAdminTemplate(currentNode));
     }
     else
     {
         nodeTemplateHolder.Controls.Add(new LiteralControl("Please select a page from the menu to the left"));
     }
 }
        private void Page_Load(object sender, System.EventArgs e)
        {
            Node root = (Node)Application["nodeRoot"];

            user = (UserPrincipal)Context.User;
            //this.showMenu = false;


            if (Request.QueryString["nodeID"] != null)
            {
                int  nodeID      = int.Parse(Request.QueryString["nodeID"]);
                Node currentNode = root.Find(nodeID);

                nodeTemplateHolder.Controls.Add(TemplateLoader.GetAdminTemplate(currentNode));
            }
            else
            {
                nodeTemplateHolder.Controls.Add(new LiteralControl("Please select a page from the menu to the left"));
            }
        }