Show partial view from different folder
<p><strong>Is that possible to access partial view which is placed in external folder?</strong></p>
<hr />
<p><a href="https://i.stack.imgur.com/0Wcfm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Wcfm.png" alt="enter image description here" /></a></p>
<p>I want to show a _LoginPartial on a page /Home/Index, but _LoginPartial should be in /Auth.</p>
<p>When I am trying to specify /Home/Index to take this partial from /Auth, I've getting an error.</p>
<pre><code>@Html.Partial(&quot;/Auth/Login&quot;)
</code></pre>
<p>ErrorLog says that</p>
<blockquote>
<p>Message=The partial view 'Views/Auth/Login' was not found or no view engine supports the searched locations. The following locations were searched:</p>
<p>~/Views/Home/Auth/Login.aspx</p>
<p>~/Views/Home/Auth/Login.ascx</p>
<p>~/Views/Shared/Auth/Login.aspx</p>
<p>~/Views/Shared/Auth/Login.ascx</p>
<p>~/Views/Home/Auth/Login.cshtml</p>
<p>~/Views/Home/Auth/Login.vbhtml</p>
<p>~/Views/Shared/Auth/Login.cshtml</p>
<p>~/Views/Shared/Auth/Login.vbhtml</p>
</blockquote>
<p>So I know that it is trying to find my partial only inside /Home directory.</p>