protected void LoadParentMenusByMenuAppTypeGroupAndLevel() { AppMenuBLL appMenu = new AppMenuBLL(); try { DataTable dt = appMenu.GetParentMenusByMenuAppTypeGroupAndLevel(menuForAppDropDownList.SelectedValue.Trim(), menuTypeDropDownList.SelectedValue.Trim(), menuGroupDropDownList.SelectedValue.Trim(), menuLevelDropDownList.SelectedValue.Trim()); parentMenuDropDownList.DataSource = dt; parentMenuDropDownList.DataValueField = "MenuId"; parentMenuDropDownList.DataTextField = "MenuName"; parentMenuDropDownList.DataBind(); parentMenuDropDownList.Items.Insert(0, "----------Select----------"); parentMenuDropDownList.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; } }