private void PopulateAllMenu()
        {
            AppMenuBLL appMenu = new AppMenuBLL();

            try
            {
                DataTable dt = appMenu.GetAllMenuData(menuForAppDropDownList.SelectedValue.Trim(), menuTypeDropDownList.SelectedValue.Trim());

                if (dt.Rows.Count > 0)
                {
                  //  testAllMenu.Items.Clear();
                    AddTopMenuItems(dt);
                }
                else
                {
                    msgbox.Visible = true; msgTitleLabel.Text = "Data Not Found!!!"; msgDetailLabel.Text = "";
                    msgbox.Attributes.Add("Class", "alert alert-warning");
                }
            }
            catch (Exception ex)
            {
                msgbox.Visible = true; msgTitleLabel.Text = "Exception!!!"; msgDetailLabel.Text = ex.Message;
                msgbox.Attributes.Add("Class", "alert alert-warning");
            }
            finally
            {
                appMenu = null;
            }
        }
        private void PopulateUserMenuForDeveloper(string menufor)
        {
            AppMenuBLL appMenu = new AppMenuBLL();
            string appmenu = "";
            try
            {
                if ((string)LumexSessionManager.Get("isMenu") == "N")
                {
                    if (menufor == "globalapp")
                    {
                        appmenu = "globalapp";
                    }
                    else if (menufor == "Site")
                    {
                        appmenu = "Site";
                    }
                    else if (menufor == "stn")
                    {
                        appmenu = "Settings";
                    }

                    ParentLevelMenuItems.Clear();
                    usermenu = new DataTable();
                    DataTable dtUserMenu = appMenu.GetAllMenuData(appmenu, "Sidebar");
                    usermenu = dtUserMenu;
                    if (dtUserMenu.Rows.Count > 0)
                    {
                        //    ainMenu.Items.Clear();
                        //      AddTopMenuItems(dtUserMenu);
                        getParentMenulist(dtUserMenu);
                        ParentLevelMenuRepeater.DataSource = ParentLevelMenuItems;
                        ParentLevelMenuRepeater.DataBind();
                    }

                    if (menufor == "App")
                    {
                        LumexSessionManager.Add("App", dtUserMenu);
                    }
                    else if (menufor == "Site")
                    {
                        LumexSessionManager.Add("Site", dtUserMenu);
                    }
                    else if (menufor == "stn")
                    {
                        LumexSessionManager.Add("menustn", dtUserMenu);
                    }
                    // LumexSessionManager.Add("IsMenu", "Y");
                }
                else if ((string)LumexSessionManager.Get("isMenu") == "Y")
                {
                    // usermenu = new DataTable();
                    //  usermenu = (DataTable)LumexSessionManager.Get("Menudata");
                    getParentMenulist(usermenu);
                    ParentLevelMenuRepeater.DataSource = ParentLevelMenuItems;
                    ParentLevelMenuRepeater.DataBind();
                }
            }
            catch (Exception)
            {

            }
            finally
            {
                appMenu = null;
            }
        }