以下のコードを見てください。別のループ内に foreach ループがありますが、実行するとページ行が繰り返されます。行の繰り返しを止める方法はありますか。コードと結果は次のとおりです。
![<div class="itemContent">
<table cellspacing="0" cellpadding="0" class="productspecstable" style="float: right">
<tbody>
<!-- B:07L -->
@foreach(var row in select)
{
foreach(var rows in selects)
{
<tr>
<td>@rows.Specifications</td>
<th>@row.LaptopOptions</th>
</tr>
}
}
</tbody>
</table>
</div>