我们可以在 ASP.NET Webforms(*.aspx 页面)中使用 Razor 语法吗? [英] Can we use Razor syntax in ASP.NET Webforms (*.aspx pages)?

查看:98
本文介绍了我们可以在 ASP.NET Webforms(*.aspx 页面)中使用 Razor 语法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢 Microsoft 为其 WebMatrix 产品中的内联编码开发的 Razor 语法 (http://en.wikipedia.org/wiki/Microsoft_WebMatrix).

I'm liking the Razor syntax that Microsoft has developed for inline coding in their WebMatrix product (http://en.wikipedia.org/wiki/Microsoft_WebMatrix).

既然 Visual Studio SP1 具有 RTM,是否可以(和/或计划)在 ASP.NET Webforms 中启用 Razor 语法?

Now that Visual Studio SP1 has RTM'd, is it possible (and/or planned) to enable the use of Razor syntax in ASP.NET Webforms?

推荐答案

我们(ASP.NET 团队)目前没有计划支持使用 Razor 语法的 WebForms 页面模型.此外,我们不太可能认真考虑这一点,因为模型差异太大,无法让两者协同工作.

We (the ASP.NET team) currently have no plans to support the WebForms page model using Razor syntax. Furthermore it is unlikely that we would ever seriously consider this as the models are too different to make the two work together.

这篇关于我们可以在 ASP.NET Webforms(*.aspx 页面)中使用 Razor 语法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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