title: User should only be able to check one checkbox (html helper MVC C#)
body: <p>The following code generates check boxes for each discount available for a product. If there are three discounts available, three check boxes will be generated. How do I ensure the user is only able to select one of these checkboxes (I didn't want to use radio buttons because I want to the user to have the option on clicking none of them). I want the user to only select one so that the data is easier handle in the controller. Thanks in advance!</p>
  
  <pre><code>&lt;br /&gt;
  &lt;div&gt;
      &lt;strong&gt;Discounts:&lt;/strong&gt;
          @foreach (var discount in Model.Product.Discounts)
          {
              &lt;br/&gt;
              @Html.CheckBox("Product.Discount", discount, true, new { Id = string.Format("{0}-{1}", Model.Product.CourseId, discount.DiscountId) })
              @discount.Description
              @discount.Percentage
          }
      &lt;br/&gt;
  &lt;/div&gt;
  </code></pre>