"Parser Error Message: The foreach block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup."
But I cannot work out whats causing this? I'm sure its something simple I'm missing!
Okay replace your code with this... The reason is Razor formatting and behaviour so it's easier to give you code you can then compare against what you currently have to see the differences. You are basically there though.
Something wrong with my code?
Hello all,
Hope you had a good weekend.
I'm having issues with a code I'm trying to use;
I keep getting the following error;
"Parser Error Message: The foreach block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup."
But I cannot work out whats causing this? I'm sure its something simple I'm missing!
Thanks in advance,
Matt
Hi Matt,
I think you are missing a
</div>
before your}
for the for each loop. You currently have 2, but I think you need 3.Thanks
Nik
Hello Nik,
Thanks for quick reply, Thought there was something!
Although Its now changed to the following;
Thanks
Hi Matt,
Okay replace your code with this... The reason is Razor formatting and behaviour so it's easier to give you code you can then compare against what you currently have to see the differences. You are basically there though.
Ahh so close! :(
Thanks Nik that sort it.
No worries Matt. It's one of those things that can be hard to spot when you get an error message that isn't really telling you the actual issue :-)
is working on a reply...