protected void GetMenuListByMenuAppTypeGroupAndLevel() { AppMenuBLL appMenu = new AppMenuBLL(); try { DataTable dt = appMenu.GetMenusByMenuAppTypeGroupAndLevel(menuForAppDropDownList.SelectedValue.Trim(), menuTypeDropDownList.SelectedValue.Trim(), menuGroupDropDownList.SelectedValue.Trim(), menuLevelDropDownList.SelectedValue.Trim()); menuListGridView.DataSource = dt; menuListGridView.DataBind(); if (menuListGridView.Rows.Count > 0) { menuListGridView.UseAccessibleHeader = true; menuListGridView.HeaderRow.TableSection = TableRowSection.TableHeader; } if (dt.Rows.Count < 1) { 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; } }