title: How do i pass values through razor in mvc4
body: <p>I'm having a difficult time with Razor and how it passes values back to my controller.</p>
  
  <p>I have the following code</p>
  
  <pre><code>    &lt;div data-role="fieldcontain" class="inline-toggle"&gt;
          &lt;label for="autoreload"&gt;Yes or No? &lt;a href="#"&gt;&lt;img class="smallInfo" src="/sites/dev-demo/mobile/assets/images/info@2x.png"&gt;&lt;/a&gt;:&lt;/label&gt;
          &lt;select name="autoreload" class="togglehidden" id="autoreload" data-role="slider" data-hidden-id="#autohidden"&gt;
              &lt;option value=@(Model.IsTrue = false)&gt;No&lt;/option&gt;
              &lt;option value=@(Model.IsTrue = true)&gt;Yes&lt;/option&gt;
          &lt;/select&gt;
          &lt;div id="autohidden" class="hide"&gt;
  &lt;input type="text" name="thevalue" id="value" value="@Model.TheValue" placeholder=""&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>As you can see, it's a toggle and when I toggle Yes, I want the value of true to be passed back, if it is no I want the value of false to be passed back to my model. In addition, I have an textbox where I can enter any value which I would like to passback to my Model.Would someone be able to help me with this syntax?</p>
  
  <p>Thanks </p>