I will potentially have many Partial Views for my application, which can be grouped into a folder structure. It seems that I should do this, otherwise I will browse the folder with many files. Therefore, I assume that I should get something like:
Views -> Group1 -> PartialView1 PartialView2
What does an HTML.partial call look like?
HTML.Partial("~/Views/Group1/MyPartialView.cshtml",Model)
Another idea I had was to have one Partial View file with conditional blocks of code, but I suspect this is contrary to everything that PartialViews does.
Finally, is there a performance difference if you have many small partial views versus one large partial view with multiple conditional components? I think, I think, that one file is loaded into memory and compiled for code, and not for several small file downloads.
Thanks.
EDIT: additional information.
I have a general controller that I use to render various parts of the report, so all sections for the Introduction chapter will be displayed using the Introduction scores, i.e. "Introduction. Section 1", "Introduction. Section 2". In my scenario, I do not believe that I have common chapters, so I can go with the "file". but the Views folder will be large, so I am considering using subfolders.
EDIT: Thanks to everyone. There are some great ideas here. I went with the idea of ββa folder at the end, since I use this approach elsewhere. However, I understand that I need to use the absolute path, but this is not a problem.