I have one view using media for iPad views, when user wants to see portrait or landscape, the rendered view is different, but everything is set up on the same file.
Let's say we have
<div class="portrait">
<%= Html.CheckBoxFor(m => m.IsSelected, new { @checked = "checked" }) %>
</div>
and on the same file:
<div class="landscape">
<%= Html.CheckBoxFor(m => m.IsSelected, new { @checked = "checked" }) %>
</div>
What is the easiest way to have same data on both ?
I know you can solve it using jQuery onChange
method manually, but is there any out of the box method that I could call in .Net MVC like SynchronizeView()
or attribute and all elements get the same value on changing.