title: HTML: checkbox using c# razor & model
body: <p>i have a checkbox that i'm using the model's company value to see if it should be checked.
  company value can have more than one company as such: 1,9,10,15</p>
  
  <p>in this case of multiple companies, following statement will never be true.</p>
  
  <pre><code>&lt;input type=checkbox id=drsc class="comp" value="9" data-mini="true"   @(Model.company=="9" ? "data-chkd=true" : "") /&gt;
  </code></pre>
  
  <p>so i'm trying to use logic below using the 'contains' clause and it doesn't seem to be working.  </p>
  
  <pre><code>&lt;input type=checkbox id=nn class="comp" value="9" data-mini="true"  @((Model.company).Contains("9") ? "data-chkd=true" : "") /&gt;
  </code></pre>
  
  <p>if my company field has just company 9, first stmt is working.  but not 2nd.
  any thoughts?</p>