Visual Studio 2017 - MVC Web应用程序控制器添加查看缺少ASPX渲染;只有RAZOR。 [英] Visual Studio 2017 - MVC Web Application Controller Add View missing ASPX rendering; only RAZOR.

查看:90
本文介绍了Visual Studio 2017 - MVC Web应用程序控制器添加查看缺少ASPX渲染;只有RAZOR。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Studio 2017的新手,并希望继续构建MVC Web应用程序,但使用的是ASPX而非RAZOR的View Engine。目前,当我进入控制器操作方法并单击它以生成视图时,没有选择
仅ASPX视图引擎RAZOR。  是否有启用ASPX View Engine选项的设置?  



 

解决方案


嗨  orlandomonaco,


欢迎来到MSDN论坛。


来自ASP.NET MVC 5,没有选择只选择RAZOR的ASPX View引擎。如果你想使用ASPX视图引擎,你可以使用早期版本的visual studio。


请看一下:
https:/ /docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/getting-started-with-aspnet-mvc4/adding-a-view
。在ASP.NET MVC 3中,仍然有Razor和ASPX的选择,但在ASP.NET MVC 5和Visual Studio 2013中,不支持ASPX。



祝你好运,


Joyce


I am new to Visual Studio 2017 and would like to continue to build MVC Web application but using a View Engine that is ASPX and not RAZOR. Currently when I proceed to a controller action method and click on it to produce a view there is no option to select an ASPX View Engine only RAZOR.   Is there a setting that enables the ASPX View Engine option?  

 

解决方案

Hi orlandomonaco,

Welcome to MSDN forum.

From ASP.NET MVC 5, there is no option to select an ASPX View Engine only just RAZOR. If you want to use ASPX view engine, you could use the earlier version of visual studio.

Please have a look at this: https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/getting-started-with-aspnet-mvc4/adding-a-view. In ASP.NET MVC 3, there still has selection for Razor and ASPX, but in ASP.NET MVC 5 and Visual Studio 2013, ASPX is not supported.

Best regards,

Joyce


这篇关于Visual Studio 2017 - MVC Web应用程序控制器添加查看缺少ASPX渲染;只有RAZOR。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆