asp.net mvc - MVC2 - Design pages at runtime -
We are in the process of implementing an MVC 2 web application, and the ability for the administrator of the site is required "design "The screen is the idea that the admin user will select from the list of predefined areas and manipulate their order display order (page from top to bottom). Once the page is designed and saved, the user of the site can navigate to the page and view the form designed.
What is the best way to implement it?
We are kicking around some of the options:
1) The admin screen continues its design pages as an actual .aspx file. I think we can create links to the page created by working with a routing engine. This approach will take advantage of JIT caching (right?), And looks and behaves like a regular MVC application. With this approach I have the issue that in order to modify pages it seems a little hack. I worry that the page can be a stale version of the compiled and running page, after which the page has been modified by the administrator.
2) Changes in the admin screen in the database, and make the scene in the application level and present it to the customer. I'm not sure what the options are, and will gladly accept any suggestions.
Obviously there are more problems than the ability to create a UI: adding verification, persistence, complex business rules etc. I'm just trying to focus on the first steps.
Comments
Post a Comment