摘要:
MVC3中 ViewBag、ViewData和TempData的使用和区别public dynamic ViewBag { get; }public ViewDataDictionary ViewData { get; set; }ViewBag和ViewData其实是互通的 ViewBag和ViewData的区别: ViewBag 不再是字典的键值对结构,而是 dynamic 动态类型,它会在程序运行的时候动态解析。eg: ViewBag.NumberObjs = new string[] { "one", "two", "three&quo 阅读全文
posted @ 2013-11-16 15:40
PowerZhang
阅读(347)
评论(0)
推荐(0)

浙公网安备 33010602011771号