public ActionResult RoleManage() { RoleBll Bll = new RoleBll(); var modellist = Bll.GetRoleList(); return(View(modellist)); }
protected void Page_Load(object sender, EventArgs e) { //绑定repeater 数据源,以及绑定 //查询角色列表 RoleBll roleBll = new RoleBll(); Repeater1.DataSource = roleBll.GetRoleList(); //绑定数据源 Repeater1.DataBind(); }