Click here to Skip to main content
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)63.2K
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 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 264
3 BillWoodruff 235
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 9 Apr 2012
Copyright © CodeProject, 1999-2014
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