private void SiteMenu_Modules() { #region Module Login // e2Shop Modules.ModuleMgr myModuleMgr = new Modules.ModuleMgr(); if (myModuleMgr.Chk_Module("A72F077B-FF47-4887-B9D7-71EC7DA2246D")) { // Add other Product RadMenu_SiteAdminMenu.DataBind(); RadMenuItem homeMenuItem = RadMenu_SiteAdminMenu.Items.FindItemByText("Home"); if (homeMenuItem != null) { RadMenuItem e2shopMenuItem = new RadMenuItem(); e2shopMenuItem.NavigateUrl = "~/App_AdminCP/ShopAdmin/Default.aspx"; e2shopMenuItem.Text = "e2Shop"; homeMenuItem.Items.Add(e2shopMenuItem); } } #endregion }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { switch (Request["LoginMsg"]) { case "invalid": lbl_ErrorText.Text = "The user does not have permission"; break; case "logout": lbl_ErrorText.Text = "You have logged out."; break; case "sessionexpire": lbl_ErrorText.Text = "Session has been expired, please relog in."; break; default: Control_Init(); break; } #region Module Login // Module Login droplist_Module.Items.Clear(); // e2CMS ListItem e2CMS = new ListItem(); e2CMS.Text = "Website Admin Panel"; e2CMS.Value = "e2CMS"; droplist_Module.Items.Add(e2CMS); // e2Shop Modules.ModuleMgr myModuleMgr = new Modules.ModuleMgr(); if (myModuleMgr.Chk_Module("A72F077B-FF47-4887-B9D7-71EC7DA2246D")) { ListItem e2Shop = new ListItem(); e2Shop.Text = "e2Shop Admin Panel"; e2Shop.Value = "e2Shop"; droplist_Module.Items.Add(e2Shop); } #endregion } }