title: Disabling a checkbox in mvc3
body: <p>I'm trying to disable a checkbox, but I'm getting an error and can't figure out what I'm doing wrong. My code is this </p>
  
  <pre><code>@Html.CheckBox("", ViewData.TemplateInfo.FormattedModelValue, new { @disabled = true } )
  </code></pre>
  
  <p>which as far as I can tell, judging by other explanations of how to disable a checkbox, should work. However, I'm getting this error:</p>
  
  <blockquote>
    <p>CS1928: 'System.Web.Mvc.HtmlHelper' does not contain a
    definition for 'CheckBox' and the best extension method overload
    'System.Web.Mvc.Html.InputExtensions.CheckBox(System.Web.Mvc.HtmlHelper,
    string, bool, object)' has some invalid arguments</p>
  </blockquote>
  
  <p>Any ideas? Thank you.</p>