I have this :
<tr>
<td>Label</td>
<td>@Html.Partial("MyPartial", Model)</td>
</tr>
In "MyPartial" :
@if (Model.MyList.Count == 0){
Html.CheckBox("chk" + Model.MyList[0].Id);
}
else
{
Html.CheckBox("chk" + Model.MyList[0].Id); <br />
Html.CheckBox("chkCommon"); <br />
Html.CheckBox("chk" + Model.MyList[1].Id); <br />
}
I don't see any checkbox appear, when I place some text in, I see it.
Any idea ?
Thanks,