开发者

Dynamic equivalent of TempData

Microsoft introduced ViewBag in MVC3 which is the dynamic version of ViewData. Similarly is 开发者_开发技巧there a dynamic version of TempData?


No, there is no such dynamic version. But you could probably easily write an extension method that wraps the TempDataDictionary as a dynamic.


Negative ghost rider but avoid the dynamic stuff if possible and use viewmodels as it is strongly typed and easier to follow

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜