if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Repeater rptSubMenu = e.Item.FindControl("rptSubMenu") as Repeater;
DataRowView drv = (DataRowView)e.Item.DataItem;
int menuId = Convert.ToInt32(drv["Menu_ID"]);
rptSubMenu.DataSource = bll.GetList(, "Parent_ID=" + menuId + " and MenuLv=2 and r.Role_ID=" + HttpContext.Current.Session["Role_ID"] + " and r.IsShow = 1", "m.iIndex asc");
rptSubMenu.DataBind();
}
手机扫一扫
移动阅读更方便
你可能感兴趣的文章