使用ASP.NET MVC4测试版中的移动应用程序播放,使用的效果非常好,但是在显示模式方面存在问题article。也就是说,我尝试使用ASP.NET MVC4移动版:CS0103:当前上下文中不存在名称'DisplayModes'
@{
ViewBag.Title = "ASP.NET Articles";
DisplayModes.RequireConsistentDisplayMode = true;
}
我_ViewStart.cshtml内,但得到的complition错误:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'DisplayModes' does not exist in the current context
任何一个人看到呢?
我想补充一点,DisplayModes类是不适用于我。 – 2012-03-14 09:39:26