asp.net-mvcviewasp.net-mvc-5partial-viewspage-layout

is this good idea to put every part of my page as a partial view in asp mvc5?


is this a good idea to separate all of these parts to different partial views, I want to make my cshtml file to be very small and easy to manage!!!

my web page different parts

enter image description here


Solution

  • It depends on what type of application you are trying to develop. If it is a single page application, then it sould be in partial views.

    In another scenario is to load a component separately which if loaded directly would cause the page load time to increase.