VS2011创建的ASP.Net网站程序查看网页如何没有设计视图
VS2011创建的ASP.Net网站程序查看网页怎么没有设计视图?
在VS2011中创建的网站程序,查看网页时只有源代码视图如下图,设计视图在哪里呢?

但是在VS2010中就有设计视图和源代码视图两种模式:
源代码视图:

设计视图:

------解决方案--------------------
你那不是aspx页面吧
------解决方案--------------------
你那个是cshtml文件,这个是什么东东?我还在用2008呢。
------解决方案--------------------
Razor是mvc里面的东西吧,那个需要后台变量配合可能就没有视图了
------解决方案--------------------
Razor视图引擎不支持WYSIWYG的设计视图。
------解决方案--------------------
Posted by Microsoft on 26/07/2011 at 09:02
The design view is not planned to be enabled for Razor views. Instead other meassures to make it easier to work with the markup/code is being made. Thanks again for your feedback
来自:
http://connect.microsoft.com/VisualStudio/feedback/details/635052/allow-design-view-for-mvc3-and-razor-view-engine
------解决方案--------------------
这是vs2012 没有2011
razor 是html 和代码放在一个文件里面 .cshtml
代码用@ 包来
@{
var x ="hello";
}
------解决方案--------------------
vs2011是Beta版吧,直接用vs2012
在VS2011中创建的网站程序,查看网页时只有源代码视图如下图,设计视图在哪里呢?
但是在VS2010中就有设计视图和源代码视图两种模式:
源代码视图:
设计视图:
------解决方案--------------------
你那不是aspx页面吧
------解决方案--------------------
你那个是cshtml文件,这个是什么东东?我还在用2008呢。
------解决方案--------------------
Razor是mvc里面的东西吧,那个需要后台变量配合可能就没有视图了
------解决方案--------------------
Razor视图引擎不支持WYSIWYG的设计视图。
------解决方案--------------------
Posted by Microsoft on 26/07/2011 at 09:02
The design view is not planned to be enabled for Razor views. Instead other meassures to make it easier to work with the markup/code is being made. Thanks again for your feedback
来自:
http://connect.microsoft.com/VisualStudio/feedback/details/635052/allow-design-view-for-mvc3-and-razor-view-engine
------解决方案--------------------
这是vs2012 没有2011
razor 是html 和代码放在一个文件里面 .cshtml
代码用@ 包来
@{
var x ="hello";
}
------解决方案--------------------
vs2011是Beta版吧,直接用vs2012