I have this in my index.cshtml:
@{
ViewBag.Title = "Home Page";
}
@{
Html.RenderPartial("~/Views/Home/Test.cshtml");
}
and this in my controller:
[ChildActionOnly]
public ActionResult Test()
{
return View();
}
I am not able to understand what is the fundamental difference between using .ascx and .cshtml in RenderPartial method? Both works for me. What is the real difference? Can anybody explain?