I have an action that could potentially be called via a normal link, in which case I\'d return a View(), or it could also be called via AJAX or RenderAction (ie as a Child Actio
You were almost there:
public ActionResult Foo() { if (Request.IsAjaxRequest() || ControllerContext.IsChildAction) { return PartialView(); } return View(); }