title: Accessing html elements in .cshtml files
body: <p>in webforms you can attach an onclick and make the checkbox postback, so you can enable/disable elements. Can you do this in MVC as well, in the .cshtml file?</p>
  
  <p>For example:</p>
  
  <pre><code>@Html.CheckBox("box")
  
  @if (box.Checked) {
      RenderSection("section")
  }
  </code></pre>
  
  <p>or, if that isn't possible, is there a way to run C# code (like Render calls) from javascript?</p>