Razor View Engine Quirks in VB.NET

后端 未结 5 1571
温柔的废话
温柔的废话 2020-12-09 16:41

I just downloaded the MVC 3.0 RC and I\'m excited to start using it, especially the Razor view engine. However, due to a few stick in the mud type people here, we are stuck

5条回答
  •  春和景丽
    2020-12-09 17:15

    I just tried this in ASP.NET MVC 3 RC in a VBHTML view and it seems to work fine:

      @For Each i As Integer In Enumerable.Range(0, 5) @:
    • @i
    • Next

    It renders this markup:

    • 0
    • 1
    • 2
    • 3
    • 4

提交回复
热议问题