This is a real head-scratcher. On my first attempt at creating a report, I get this YSOD error.
Parser Error
[/size]Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message:Encountered end tag "tr" with no matching start tag. Are your start/end tags properly balanced?
Source Error:
Line 370: Summary for @(Model.displayVar("label Member_Training_Report School")) @(Model.displayVar("School_grval"))Line 371: - <SPAN class="summary-1" data-type="summary" data-value="@(Model.displayVar("groupSchool_total_cnt"))">@(Model.displayVar("groupSchool_total_cnt"))</span> records total</div></td>Line 372: </tr>Line 373: }Line 374: }
Source File:/Views/Member_Training_Report/report.cshtml Line:372 [/size]
[font="Verdana"][size="2"]I have not modified the report in any way. Just a point-and-click affair with some joined tables. When I look at the source file, I can see the opening <tr> tag. Here's part of that file:[/size]
[font="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif"]
<!------------------------------------- group summary ----------------------------------------->
foreach (string _TrainingID_endgroup in Model.GetSection("TrainingID_endgroup", this)){
<tr class="summaryrow" >
<td style="border-top: none;" class="group_1"></td>
<td class=group_2 colspan=7 >
Summary for @(Model.displayVar("label Member_Training_Report TrainingID")) @(Model.displayVar("TrainingID_grval"))
- <SPAN class="summary-2" data-type="summary" data-value="@(Model.displayVar("groupTrainingID_total_cnt"))">@(Model.displayVar("groupTrainingID_total_cnt"))</span> records total</div></td>
</tr>
}
foreach (string _School_endgroup in Model.GetSection("School_endgroup", this)){
<tr class="summaryrow" >
<td class=group_1 colspan=8 >
Summary for @(Model.displayVar("label Member_Training_Report School")) @(Model.displayVar("School_grval"))
- <SPAN class="summary-1" data-type="summary" data-value="@(Model.displayVar("groupSchool_total_cnt"))">@(Model.displayVar("groupSchool_total_cnt"))</span> records total</div></td>
</tr>
}
}
Any ideas?