title: How to check if checkbox is checked in view page with razor and if checked display a textbox
body: <p>How can I check if a checkbox is checked in view page with razor and if checked display a textbox! </p>
  
  <p>I'm new in asp.net mvc and razor, still learning. </p>
  
  <p><strong>View Code</strong></p>
  
  <pre><code>@Html.CheckBoxFor(m =&gt; m.SupportRequired)    
  @Html.TextBoxFor(m =&gt; m.AssistName new { @class = "form-control" })
  </code></pre>