title: After updating a model, the values don't reflect on the View
body: <p>I used Visual Web Developer 2010 and ASP .NET with MVC2 to create a simple Customer Management module, where the view will allow entering first name, last name, address, etc., and upon submitting, a new "ID" will be assigned to the CustomerID property of the CustomerModel instance.</p>
  
  <p>The Controller method (CustomerController) for creating customer is as below:</p>
  
  <pre><code>&lt;HttpPost()&gt; _
  Public Function CreateCustomer(ByVal model As CustomerModel) As ActionResult
      model = Me.customerServiceClientValue.CreateCustomer(model)
      Return (View(model))
  End Function
  </code></pre>
  
  <p>I can see that the control reaches inside the CreateCustomer () method, and it calls the Customer Service to create the customer. The service returns a customer with a new ID as well. As in the method, the customer instance returned from the service call is assigned back to the "model" variable that came in. That model instance is passed to the "View" in the return statement. Yet, when the view is refreshed, I do not see a value for the customer ID field.</p>
  
  <p>I have the following mark-up for the customer ID field:</p>
  
  <pre><code>&lt;div class="editor-label"&gt;
      &lt;%: Html.LabelFor(Function(model) model.CustomerID)%&gt;
  &lt;/div&gt;
  &lt;div class="editor-field"&gt;
      &lt;%: Html.TextBoxFor(Function(model) model.CustomerID)%&gt;
      &lt;%: Html.ValidationMessageFor(Function(model) model.CustomerID)%&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What am I doing wrong? Why am I not getting the Customer ID in the field, although the model contains the new Customer ID? Appreciate all your helps.</p>
  
  <p>Thanks and regards,</p>
  
  <p>Dinesh Jayadevan</p>