我要么得到“你需要一个 ; 这里”或“最佳重载匹配有无效参数”错误。
<tbody>
<tr>
@for (int i = 0; i < startDay; ++i)
{
@:<td><span></span><span></span></td>
}
@for (int j = startDay; j < ((numberOfDays + startDay) - 1); ++j)
{
<td>
<span>@startCount</span>
<br />
<span>
@{
var todaysEvents = Model.ToList().FindAll(d => d.CalDate.Day == j);
foreach(HTMLMVCCalendar.Models.CalendarModel eventsToday in todaysEvents)
{
foreach(HTMLMVCCalendar.Models.EventModel eventToday in eventsToday.CalEvents)
{
@eventToday.DayCode.ToString // error here
@:<br />
@eventToday.Subject // error here
@:<br />
@eventToday.EventDesc //error here
}
@:<br />
}
}
</span>
</td>
if ((j + 1) % 7 == 0)
{
@:</tr><tr>
}
@++startCount;
}
</tr>
</tbody>