Returning Partial View ASP.NET MVC
<p>Hi I have a partial view setup for handling error messages, but when it's returned it returns a full webpage with just the text No Results Found.</p>

<p>I would expect the Partial View to return inline on my main Index page? As in my Index page I have the code <code>@Html.Partial("_ErrorMessage")</code>.</p>

<p>Below is how I'm handling this in my HomeController</p>

<pre><code>            else
            {
                ViewBag.Error = "No results found!";
                return PartialView("ErrorMessage");
            }
        }             
</code></pre>