我现在对 ASP.NET MVC 的 Razor ViewEngine 感到困惑。
大多数人会说:
View.Title
与
相同ViewData["Title"]
运行应用程序后我得到了这个
Compiler Error Message: CS0103: The name 'View' does not exist in the current context
什么给了?我错过了什么? 我正在使用 VWD 2010 Express + ASP.NET MVC 3 R2
最佳答案
关于asp.net-mvc - View.Title == ViewData ["Title"],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4441422/