private void Control_Init() { // Bind Page Folders PageMgr myPageMgr = new PageMgr(); droplist_Normal_Folders.DataSource = myPageMgr.Get_Page_Categories(); droplist_Normal_Folders.DataTextField = "Name"; droplist_Normal_Folders.DataValueField = "Page_CategoryID"; droplist_Normal_Folders.DataBind(); }
private void Page_Controls() { // Switch to page view MultiView_Pages.SetActiveView(View_ShowPage); // Check _pageindexid string _pageindexid = Request["PageIndexID"]; if (!DataEval.IsEmptyQuery(_pageindexid)) { Active_PageShow_Page(_pageindexid); } else { _pageindexid = "-1"; PageList_Index.Page_CategoryID = "1,2"; PageList_Index.Control_Init(); MultiView_Pages.SetActiveView(View_ListPage); } // Expand the tree node and select the node PageMenu_PageIndex.Selected_PageIndexID = _pageindexid; PageCommand_Live_PageIndex.PageIndexID = _pageindexid; // Init PageMenu List PageMenu_PageIndex.Visible = true; PageMenuList_PageIndex.Visible = false; // Init PageCommand List PageCommand_Live_PageIndex.Visible = true; PageCommand_Normal_PageIndex.Visible = false; // Bind Page Folders PageMgr myPageMgr = new PageMgr(); droplist_PageFolder.DataSource = myPageMgr.Get_Page_Categories(); droplist_PageFolder.DataTextField = "Name"; droplist_PageFolder.DataValueField = "Page_CategoryID"; droplist_PageFolder.DataBind(); }