How to generilize view?

Posted by MexicanHacker on Stack Overflow See other posts from Stack Overflow or by MexicanHacker
Published on 2010-05-20T16:48:23Z Indexed on 2010/05/20 16:50 UTC
Read the original article Hit count: 193

Filed under:
|

Hey guys, I'm in the process of designing a set of views that use the same model in my app, the difference is that some views will differ in Read Only and Modifiable fields.

So for example for view A I want to be able to modify A.One but no A.Two properties and for view B I want to have B.One and B.Two as modifiable fields.

I was thinking in having a map that will hold this information and iterate both the modifiable and non-modifiable lists in a generic view, but I was thinking that maybe I can get feedback from you guys.

What do you think?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about c#