protected void LoadOnlyParentMenusByMenuAppTypeGroupAndLevel() { AppMenuBLL appMenu = new AppMenuBLL(); try { groupWiseMenuListListBox.Items.Clear(); groupWiseUserMenuListListBox.Items.Clear(); DataTable dt = appMenu.GetOnlyParentMenusByMenuAppTypeGroupAndLevel(menuForAppDropDownList.SelectedValue.Trim(), menuTypeDropDownList.SelectedValue.Trim(), menuGroupDropDownList.SelectedValue.Trim(), menuLevelDropDownList.SelectedValue.Trim()); groupWiseMenuListListBox.DataSource = dt; groupWiseMenuListListBox.DataValueField = "MenuId"; groupWiseMenuListListBox.DataTextField = "MenuName"; groupWiseMenuListListBox.DataBind(); if (groupWiseMenuListListBox.Items.Count > 0) { refreshImageButton.Enabled = true; getChildsButton.Enabled = true; } else { refreshImageButton.Enabled = false; getChildsButton.Enabled = false; } countSubParentMenuLabel.Text = "Total: " + groupWiseMenuListListBox.Items.Count.ToString(); countChildMenuLabel.Text = "Total: " + groupWiseUserMenuListListBox.Items.Count.ToString(); } catch (Exception ex) { msgbox.Visible = true; msgTitleLabel.Text = "Exception!!!"; msgDetailLabel.Text = ex.Message; msgbox.Attributes.Add("Class", "alert alert-warning"); } finally { appMenu = null; } }
protected void LoadOnlyParentMenusByMenuAppTypeGroupAndLevel() { AppMenuBLL appMenu = new AppMenuBLL(); try { DataTable dt = appMenu.GetOnlyParentMenusByMenuAppTypeGroupAndLevel(menuForAppDropDownList.SelectedValue.Trim(), menuTypeDropDownList.SelectedValue.Trim(), menuGroupDropDownList.SelectedValue.Trim(), menuLevelDropDownList.SelectedValue.Trim()); filterBySubParentDropDownList.DataSource = dt; filterBySubParentDropDownList.DataValueField = "MenuId"; filterBySubParentDropDownList.DataTextField = "MenuName"; filterBySubParentDropDownList.DataBind(); filterBySubParentDropDownList.Items.Insert(0, "All"); filterBySubParentDropDownList.SelectedIndex = 0; } catch (Exception ex) { msgbox.Visible = true; msgTitleLabel.Text = "Exception!!!"; msgDetailLabel.Text = ex.Message; msgbox.Attributes.Add("Class", "alert alert-warning"); } finally { appMenu = null; } }