How can I check if a check box is checked in view page with razor in asp.net mvc?
<p>I'm new in <code>asp.net mvc</code> and write this razor code for show me check box component:</p>

<pre><code>@Html.CheckBox("FlatFile",false)
</code></pre>

<p>I want write razor c# script to check if that check box is checked then work some thing, I don't want to write javascript or anything, I just want write c# razor script code for that purpose.</p>

<p>How can I write that?</p>