title: Hard Code Value for @Html.EditorFor
body: <p>My MVC 3 application needs to <strong>create new users</strong>.</p>
  
  <p>I want to hard code the ApplicationId for the ApplicationId text box in the view.</p>
  
  <p>Does anyone know how to do this?</p>
  
  <p>The create method does not fetch any data:</p>
  
  <pre><code>public ActionResult Create()
  {
      return View();
  }
  
  
    &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.ApplicationId)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.ApplicationId)
              @Html.ValidationMessageFor(model =&gt; model.ApplicationId)
          &lt;/div&gt;
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>There is an option. To use a hidden field.</p>
  
  <pre><code>    @Html.Hidden("ApplicationId", "ep006964-83a8-4f40-a569-d2d3296f005b")
  </code></pre>