title: Set value to @Html.Editor MVC
body: <p>Can somebody help me here, I have the following:</p>
  
  <pre><code>@Html.Editor("entities[" + @k + "].Amount", entity.Amount)
  </code></pre>
  
  <p>I would like the Editor to display the amount in the text-field. I have tried the following:</p>
  
  <pre><code>@Html.Editor("entities[" + @k + "].Amount", entity.Amount, new { @Value = "45"}) &lt;text&gt; m&lt;/text&gt;
  </code></pre>
  
  <p>And I got the following error:</p>
  
  <pre><code>CS1928: 'System.Web.Mvc.HtmlHelper&lt;ProjectName.Order&gt;' does not contain a definition for 'Editor' and the best extension method overload 'System.Web.Mvc.Html.EditorExtensions.Editor(System.Web.Mvc.HtmlHelper, string, string, object)' has some invalid arguments.
  </code></pre>
  
  <p>Any suggestions? 
  Thanks!</p>