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
you may note that for writing a code block you can write in two ways
In your case you can do as following
@{
for(int i=0; i < itemsCount; i++)
{
@:
@:
}
}