mvc 3 equivalent to function?

后端 未结 4 1172
不思量自难忘°
不思量自难忘° 2020-12-08 07:51

I have a website in Asp.Net that I am trying to port to MVC 3 and I have only worked with MVC 2 before. I stumbled across the following asp function

4条回答
  •  一整个雨季
    2020-12-08 08:33

    You're quite right to suppose that the MVC equivalent of an asp:Repeater is

    <% foreach( var item in Model )
       { %>
           
    <% } %>
    

提交回复
热议问题