title: Getting model item in HttpGet to HttpPost after form submission - ASP.NET MVC 3
body: <p>I'm having a little trouble with something.</p>
  
  <p>I have an HttpGet method like this:</p>
  
  <pre><code>[HttpGet]
  public ActionResult Form()
  {
      MyModel model = new MyModel();
      model.something = "hi";
      return View(model);
  }
  </code></pre>
  
  <p>In my model:</p>
  
  <pre><code>public string something { get; set; }
  
  [Display(Name="Something Else:")]
  public string somethingelse { get; set; }
  </code></pre>
  
  <p>And in my view i have a form:</p>
  
  <pre><code>@model Path.To.Models.MyModel
  
  @Html.TextBoxFor(model =&gt; model.somethingelse)
  
  &lt;input type="submit" value="Submit" /&gt;
  </code></pre>
  
  <p>The problem is after the form is submitted, model.something is coming back as null instead of what I expect, which is "hi"</p>
  
  <p>Here's my HttpPost</p>
  
  <pre><code>[HttpPost]
  public ActionResult Form(MyModel model)
  {
      // model.somethingelse equals the form value, which is right
      // model.something is null, instead of what I expect - "hi"
  
      return View(model);
  }
  </code></pre>
  
  <p>Can anyone help me with this? I need to get the data from the GET to the POST after the form submission, but it's coming back null.</p>
  
  <p>Thanks</p>