Use JavaScript Variable in Asp.net MVC Razor syntax
<p>How to use JavaScript variables inside ASP.NET MVC Razor instructions?</p>

<p>Example:</p>

<pre><code>function updChart(_IndId) {

    @foreach (var d in Model.Where(p =&gt; p.IndId.Equals(_IndId)))

...
}
</code></pre>

<p>I can't use <code>_IndId</code> variable. Any idea how to use it?</p>