I have a simple PartialView setup in my MVC3 Project using the Razor View Engine.
The Partial will render but if I set a breakpoint in the controller on the Action for the Partial, it never gets hit. If I change the URL to go directly to the PartialView, i.e. http://localhost:13965/Home/GridControl, then the breakpoint is hit. What am I missing?
My view:
@model MyModel
@Html.Partial("GridControl", Model)
My Controller:
public ActionResult GridControl()
{
return PartialView();
}