How to move from ASPX to the razor view engine in ASP.NET MVC 3?

I have an ASP.NET MVC 2 website that I have already upgraded to MVC 3. It doesn't seem to me that the new Razor views very easily coexist with my older ASPX views. I found several articles, but I do not have all of their suggestions, and it seems that not many people have succeeded in this.

Has Microsoft Helped Something Easier to Add Razor Support to the Updated MVC 2 Application?

+3
source share
3 answers

I did not do this myself, however, in this post by Scott Guthrie, here is this screenshot:

Razor view engine

, , , , . , , Razor.

- ASPX Razor. , (, .config).

0

.

  • MVC 3 Razor .
  • , web.config( ) . System.Web.Helpers System.Web.Webpages. web.config. .
  • _ViewStart.cshtml ( "" )
  • _Layout.cshtml ( Views\Shared)
  • _Layout.cshtml. , jquery ( js) .. , .
  • . .
0

Source: https://habr.com/ru/post/1785078/


All Articles