Skip to content
Loading

Reference:

http://www.c-sharpcorner.com/UploadFile/ff2f08/partial-view-in-mvc/
Mark as answer, if helpful.


0
  • 0
    in my case my partial view get the data from the model so it is not just a partial view it is having model as well . i have tried 
    @{Html.RenderAction("MenuPartial", "Home");}
    public ActionResult MenuPartial()
    {
    using (var db = new MenuModel())
    {
    var d = db.tblMainMenus.Include(c => c.tblSubMenus).ToList();
    return PartialView("_MenuPartial",d);
    }
    }
    I have _MenuPartial view in shared folder , btu it did not work  
    0