0
@{
foreach (CaseCount cc in @Model.CaseCounts)
{
<tr>
<td>@cc.Country</td>
<td>@string.Format("{0:n0}", cc.RegisteredCases)</td>
<td>@Html.DropDownList("Reports", new SelectList(@Model.ReportList, "Value", "Text"), new { onchange = "window.location.href='Reports/RenderReport/' + this.value + '/' + @cc.Country;" })</td>
</tr>
}
}
@ cc. 국가가 인식되지 않습니다. 컨트롤러의 동작이 트리거되지 않습니다 :(면도기 onchange가 @variable을 인식하지 못함
내가 cc.Country @ 제거하거나 단순히 하드 코딩 넣어 경우가
당신이 렌더링 된 HTML을 게시하시기 바랍니다 수 – rhughes