Click here to Skip to main content
13,044,115 members (83,580 online)
Rate this:
Please Sign up or sign in to vote.
Hi All,

We are developing web application based on with MVC3. Our requirement is to compose/present a page dynamically based on a configuration saved by Administrator. We need to load multiple components (in our case partial views) dynamically for a module/screen. as per configuration (Deployment for a customer). The configuration file will look like.
Client Id           Configured Component
Client1             SelectionCriteria	SelectionCriteriaVer1Component
                         PlanningSection	PlanningSectionVer2Component
                         AnalysisSection	AnalysisSectionVer3Component
Client2	          SelectionCriteria	SelectionCriteriaVer2Component
                         PlanningSection	PlanningSectionVer1Component
                         AnalysisSection	AnalysisSectionVer1Component

Now when client1 is logged then for PlanningModule, respected views will be rendered to construct a page.

We are using partial views for each component and render logic is written in controller. We are using StructuredMap to achieve this for dependency injection. Please suggest better the approach if we are in wrong direction.

All comments are welcome.
Posted 8-Apr-12 21:17pm
Updated 8-Apr-12 23:56pm
Nelek 9-Apr-12 5:56am
Tags added

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 9 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100