title: How to Set value for Hidden field in Razr MVC
body: <p>In my application I need to pass some values from one page(page A to Page B) to another page.
  For this I am using Session variables(I cannot use Tempdata as it doesn't work on loadbalancing).
  In Page A I am setting the Session Variable.
  In Page B I need to retrieve the above Session variable.
  For this I am using a Hidden field in Page B.
  I dont know how to set the Session Variable to Hidden Field in  Page B.</p>
  
  <h3>Page A</h3>
  
  <pre><code>[HttpPost]
  public JsonResult GetFileName(string updatedfileName, string orgfileName)
  {
      Session["OrgFileName"] = orgfileName;
      Session["UpdatedFileName"] = updatedfileName;
      var result = myService.getFile(updatedfileName, orgfileName);
      return Json(result, JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <h3>Page B</h3>
  
  <pre><code>&lt;div style="display:none" &gt;         
      &lt;input type="hidden" value="" id="hdnfilename" /&gt;
  &lt;/div&gt;
  </code></pre>