I am looking for some tips on storing views in a data warehouse (database, file, etc.) and displaying them based on routing data, all using ASP.NET MVC 2 and ASP.NET routing.
For example, I would like to be able to display various views based on the following route data:
/{country}/
/{country}/{area}
But in the same vein, I would like to display:
/{planet}/
/{planet}/{satellite}
They are all row based and data is not fixed. Therefore, based on the number of segments, perhaps use this as selection criteria in the data warehouse ... in addition, I do not know the segments in the front, so they will all be dynamic.
I was hoping that we could put together several different methods here, as something like a reference for everyone - I am sure that some methods will not contain all ...
So how would you do that?
Branislav Abadzhimarinov proposed the Factory controller, which could be used to search and display the page dynamically. I like this idea, what do you think?
source
share