Razor View Engine Quirks in VB.NET

后端 未结 5 1568
温柔的废话
温柔的废话 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:10

    As previously mentioned in comments, but not explicitly shown; prepending the text tag with @ solves the issue:

    @For Each genreName As String In Model.Genres
        @
            
  • @genreName
  • Next

提交回复
热议问题