Asp.Net Webforms Vs Asp.Net WebSite(Razor) Vs Asp.Net MVC

前端 未结 6 1375
名媛妹妹
名媛妹妹 2020-12-12 22:36

I think Microsoft must have a reason for enhancing ASP.Net with RAZOR syntax.

On the Create New Website Project dialog of visual studio, there is another o

6条回答
  •  无人及你
    2020-12-12 23:21

    1. There are no "code-behinds" in MVC, period. What you have are controllers, which exist both for Razor and non-Razor.
    2. They're just two different types of markup. (See next answer)
    3. It's not replacing MVC, it's just another option. The traditional markup is very verbose. Razor syntax is succinct.

提交回复
热议问题