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
Try put @: before your html code like this:
@:
@for(int i=0;i< itemsCount; i++) { @: html code here }
Alternatives: 1. wrap your html code with 2. use HtmlHelper to generate the html code
HtmlHelper