MVC Razor for loop

后端 未结 6 1315
小鲜肉
小鲜肉 2021-02-13 10:16

I have this code (nested inside a form post) but am continually getting the error that it\'s missing the closing }

@for(int i=0;i< itemsCount         


        
6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-13 10:57

    Or you can use the Html.Raw helper

    @for(int i=0; i < itemsCount; i++)
    {
        
        
    } 
    

提交回复
热议问题