Passing a true/false value to a model used in a controller This passes the value of true/false to model which I can use in my controller.

How can this be cleaned up?

&lt;div data-role="fieldcontain" class="inline-toggle"&gt;
        &lt;label for="IsAuto"&gt;Auto &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="IsAuto" class="togglehidden" id="IsAuto" data-role="slider" data-hidden-id="#autohidden"&gt;
            &lt;option value="false"&gt;No&lt;/option&gt;
            &lt;option value="true"&gt;Yes&lt;/option&gt;
        &lt;/select&gt;
        @Html.HiddenFor(m =&gt; m.IsAuto, new { id = "#IsAuto", value="#IsAuto" })
        &lt;input type ="hidden" name ="autorel" id="autorel" value="@(Model.IsAuto = "#IsAuto".AsBool())" /&gt;
None. However, it has several issues. Here it is, indented differently to avoid horizontal scroll:

&lt;div data-role="fieldcontain" class="inline-toggle"&gt;
    &lt;label for="IsAuto"&gt;Auto
        &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="IsAuto"
            class="togglehidden"
            id="IsAuto"
            data-role="slider"
            data-hidden-id="#autohidden"&gt;
        &lt;option value="false"&gt;No&lt;/option&gt;
        &lt;option value="true"&gt;Yes&lt;/option&gt;
    &lt;/select&gt;
    @Html.HiddenFor(m =&gt; m.IsAuto, new { id = "#IsAuto", value="#IsAuto" })
    &lt;input
        type ="hidden"
        name ="autorel"
        id="autorel"
        value="@(Model.IsAuto = "#IsAuto".AsBool())" /&gt;



Where is the closing tag for div?
What do you use, XHTML or HTML5? In the first case, you should close img. In the second case, you shouldn't close the last input.
"#IsAuto".AsBool() always returns false, since "#IsAuto" is never equal to "true".
Why are you assigning a value to a property of your model in a view in the last line? Maybe you expected Model.IsAuto == ...?
An id of the hidden field which starts by # is weird.
If you care about naming conventions, m is a poor name for a variable. Basically, any person who have never used ASP.NET MVC before wouldn't be able to know that it refers to a model.
Given the actual syntax for the hidden field, wouldn't it be easier to simply write it in plain HTML?