摘要:
新建一个模板页的类,让它继承于Controler类,在构造函数中写上ViewData[“MasterPageData”],返回数据。然后在每个用到模板页的Controlers中都继承这个类即可。详见:public class MasterPageData : Controller //模板页的类 { BLL.Menu bll = new BLL.Menu(); public MasterPageData() { IList<Menu> menuList= bll.GetMenuList(); ViewData["MasterPageData"] = menuLi 阅读全文
posted @ 2011-12-27 10:01
海之澜
阅读(659)
评论(0)
推荐(1)
浙公网安备 33010602011771号