#TemplateData

Asp.net MVC的ViewData与ViewBag以及TemplateData的使用与区别

ViewDataViewBag它是Key/Value字典集合它是dynamic类型对像从Asp.netMVC1就有了ASP.NETMVC3才有基于Asp.net3.5framework基于Asp.net4.0与.netframeworkViewData比ViewBag快ViewBag比ViewData慢在ViewPag...