title: How to refer to a CSS style using ASP.NET MVC?
body: <p>In ASP.NET MVC I could define a textBox editor like this and give it a style.</p>
  
  <pre><code> @Html.TextBoxFor(m =&gt; m.Notes[i].Notes, new { style = "width: 500px;" });
  </code></pre>
  
  <p>How can I move the style to the Site.css file and just refer to it from the code above?</p>
  
  <pre><code>.myStyle {
      width: 500px;
  }
  </code></pre>
  
  <p>I tried this which compiles but doesn't seem to work:</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.Notes[i].Notes, "myStyle");
  </code></pre>