Click here to Skip to main content
11,491,742 members (70,095 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET MVC partial IOCP
Hi All,

We are developing web application based on ASP.net 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
(no name)70.7K
v2
Comments
Nelek at 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
0 Sergey Alexandrovich Kryukov 476
1 Maciej Los 276
2 Sascha Lefèvre 275
3 Andy Lanng 263
4 OriginalGriff 215
0 Sergey Alexandrovich Kryukov 9,829
1 OriginalGriff 8,530
2 Sascha Lefèvre 3,579
3 Maciej Los 3,332
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | 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