title: prepopulate Html.TextBoxFor in asp.net mvc 3
body: <p>I'n new at this, so apologies if this isn't explanatory enough. I want to prepopulate a field in a form in asp.net mvc 3. This works;</p>
  
  <pre><code>@Html.TextBox("CompName", null, new { @value = ViewBag.CompName })
  </code></pre>
  
  <p>But when I want to prepopulate it with a value and send that value to my model, like this;</p>
  
  <pre><code> @Html.TextBoxFor(model =&gt; model.Comps.CompName, null, new { @value = ViewBag.CompName })
  </code></pre>
  
  <p>It won't work. Any ideas?</p>
  
  <p>Thanks in advance!</p>