How to hide but still render e.g. a partial view in MVC Razor View?
<p>I have following part in a MVC Razor View:</p>

<pre><code>@if (Model.BooleanField)
{
    @Html.Partial("PartialView")
}
</code></pre>

<p>This code does not render the code of the partial view in the DOM but I want the partial view still to be rendered in the DOM but not shown.</p>

<p>How do I accomplish this?</p>