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