The if 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.
何らかの理由で、ASP.NET MVC アプリケーションでエラーが発生する理由がわかりません。
@foreach (var image in Model.Images)
{
if (counter == Model.Images.Count - 1)
{
<div style="float: left; height: 250px; padding-right: 5px;">
}
else
{
<div style="float: left; height: 200px; padding-right: 5px;">
}
....
....
上記の前は、単純に : を実行<div style="float: left; height: 200px; padding-right: 5px;">
していましたが、見栄えを良くするために、この If Else が必要です。
If Else ステートメントで何が間違っていますか?