protected void rptMainMenu_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { submenuitem = new SubMenuItemBLL(); Repeater childRepeater = (Repeater)e.Item.FindControl("rptSubMenuItem"); Label lblmenuid = (Label)e.Item.FindControl("lblMenuID"); int MenuID = Convert.ToInt32(lblmenuid.Text); childRepeater.DataSource = submenuitem.ListSubMenuItemByMenuID(MenuID); childRepeater.DataBind(); } }
private void load_gwSubMenuItem(int menuId) { submenuitem = new SubMenuItemBLL(); gwSubMenuItem.DataSource = submenuitem.ListSubMenuItemByMenuID(menuId); gwSubMenuItem.DataBind(); }