asp.net mvc 2 - Providing MVC Shared Folder Structure -
I am working on a project and I want to be able to put many ideas in the shared folder. However, when all of this (through a generation process) is created, I start feeling "Custard & amp; ^% $ fobic" due to X * N partial views in the shared folder and looking for a better organizational model I am here.
Is it possible to create just one folder structure in the shared folders and "hope" MVC has to wire them properly or do something else.
Ex folder structure I have
... Shared Products 1 dropdown list .ascx Product2DropdownList.ascx Product3DropdownList.ascx Product1Search.ascx Product2Search.ascx Product3Search.ascx ... Folder structure I like ... Share Product ProductDropdownList .ascx Product1Search.ascx Product2 Product2DropdownList.ascx Product2Search.ascx Product 3 Products 3DropdownList.ascx Product3Search.ascx ...
This seems like a simple view-over-riding case.
In your derived view engine, you can set rules, search sub-directors, etc., etc. ...
There are some examples of this approach around the web, but after using "a certain" code can not be quite dynamic, but I suggest you mention it:
For ideas and inspiration.
Comments
Post a Comment