Click here to Skip to main content
11,924,280 members (68,512 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET MVC partial IOCP
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 22:17pm
Edited 9-Apr-12 0:56am
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
Web04 | 2.8.151125.3 | Last Updated 9 Apr 2012
Copyright © CodeProject, 1999-2015
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