title: How to change a hidden field value for a checkbox
body: <p>Using Razor in my mvc web app.</p>
  
  <p>I have this:</p>
  
  <pre><code>@Html.CheckBox(Model.SectionModel[i].PreferenceModel[j].Name,Boolean.Parse( Model.SectionModel[i].PreferenceModel[j].Value ))
  </code></pre>
  
  <p>so, for me here the initial value of this checkbox is TRUE.</p>
  
  <p>Now, if my User sets it to false I wish to change/create a hidden field to show this value is FALSE for use in my postback.</p>
  
  <p>I cannot use @HTML.CheckBoxFor because the value is coming from a XML file and this value could be for a different control that is not a boolean value.</p>
  
  <p>Following the suggested answer route i put in this:</p>
  
  <pre><code>@Html.EditorFor( x =&gt; x.SectionModel[i].PreferenceModel[j].Value, Model.SectionModel[i].PreferenceModel[j].Name)
  </code></pre>
  
  <p>but the value as the value i string a textbox is rendered and not a checkbox.  which is the opoosite to my problem</p>
  
  <p>is null </p>