I have this in my index.cshtml:
@{ ViewBag.Title = "Home Page"; } @{ Html.RenderPartial("~/Views/Home/Test.cshtml"); }
and this is in my controller:
[ChildActionOnly] public ActionResult Test() { return View(); }
I canβt understand what is the fundamental difference between using .ascx and .cshtml in the RenderPartial method? Both work for me. What's the difference? Can someone explain?
source share