如何使用不同的页面引擎创建ASP.NET MVC 4项目? [英] how to create ASP.NET MVC 4 project with different page engine ?

查看:68
本文介绍了如何使用不同的页面引擎创建ASP.NET MVC 4项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用剃刀引擎创建mvc 4项目时,我无法添加视图.aspx。

如果有人知道如何添加它请回答我

谢谢:)

when i create mvc 4 project with razor engine , I can't to add view .aspx .
if any one have an idea to how i add it please answer me
thank you :)

推荐答案

你不能在同一个项目中混合使用vie引擎。你要么使用Razor还是普通的ASPX引擎,而不能同时使用两者。



话虽如此,你可以一起破解,但它是不支持。



阅读 [ ^ ]
You can't mix vie engines in the same project. You're either going to use Razor or the normal ASPX engine, but not both at the same time.

Having said that, you can hack something together, but it's not supported.

Read this[^]


这篇关于如何使用不同的页面引擎创建ASP.NET MVC 4项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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