title: Assign Model property value from JavaScript value
body: <p>I have a model with the following definition:</p>
  
  <pre><code>namespace ESimSolChemical.Models
  {
  
      public class Employee
      {        
          public int EmployeeID{ get; set; }
          public string EmployeeName{ get; set; }
          public string Age{ get; set; }
          public string Address{ get; set; }
  
      }
  </code></pre>
  
  <p>I have Following JavaScript:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          $('#btnEmployeePiker').click(function () {
              var oParameter = new Object();
              oParameter.MultipleReturn = false;
              var oReturnObject = window.showModalDialog('/Employee/EmployeePiker/', oParameter, 'dialogHeight:470px;dialogWidth:550px;dialogLeft:400;dialogTop:100;center:yes;resizable:no;status:no;scroll:no');           
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>My Javascript <code>oReturnObject</code> contains two property Like :</p>
  
  <pre><code>oReturnObject.EmployeeID;
  oReturnObject.EmployeeName;
  </code></pre>
  
  <p>Now I would like to assign: </p>
  
  <pre><code>@Model.employeeID=  oReturnObject.EmployeeID;
  </code></pre>
  
  <p>How can I accomplish this task?</p>