Posted on: 12/7/2013 3:37:25 AM | Views : 840

I would likt to show/hide controls in a page based on a particular feature they are mapped to. And this list would come from a source say it could be form database.
For E.g. Assume, in a page there are three controls c1,c2,c3. There are 2 features created for the particular page in the DB and let it be f1, f2. For f1, i would like to show the controls c1 & c2, where as for f2 i would like to show only c1 & c3.
I do not want to scribble my page with plenty of if else/logical conditions. The method should be more generic, which means that if a new control is added to the page i should just map the control to a feature in DB, no code changes should be from my end.
Possibly a normalization for this in the database end is also well appreciated.
Solution i have, but would need suggestions
1) Looping all controls in the page and checking wthr th ...

Go to the complete details ...