剃刀VS新的ASP.NET MVC 3网站Web表单视图引擎 [英] Razor vs Webforms view engine for new ASP.NET MVC 3 site

查看:112
本文介绍了剃刀VS新的ASP.NET MVC 3网站Web表单视图引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

剃刀prettier(并因此新酷)。

Razor is prettier (and is new therefore cool).

Web表单是什么,我已经熟悉了。

Webforms is something I am already familiar with.

当然,我毫无疑问会去学习新的东西 - 剃刀。但我听到两个缺点是担心我:

Naturally I would unquestionably go for the new thing to learn - Razor. But I have heard of two disadvantages that worry me:


  • 不能轻松地重用现有的Web窗体控件 - 在极少数情况下我可能需要进行横向拖动的东西......我要重申 - 罕见

  • 我听说这是效率较低的渲染(不是web窗体需要更长的时间)

那么,什么是剃刀在Web表单的优势视图引擎使用时,ASP.NET MVC 3?

So what are the advantages of Razor over Webforms view engines when using ASP.NET MVC 3?

推荐答案

这已经被以下问题解决:<一href=\"http://stackoverflow.com/questions/4019740/does-razor-syntax-provide-a-compelling-advantage-in-ui-markup\">Does剃刀语法UI提供了一个令人信服的优势标记?

This has already been addressed by the following question: Does Razor syntax provide a compelling advantage in UI markup?

这篇关于剃刀VS新的ASP.NET MVC 3网站Web表单视图引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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