Reputation: 7650
I have dynamic form about posting room ad and first option is:
Room in: In flat or In dorm
according the choice, other fields set up. I don't want to do this hard-code, for the sake of maintenance plus, there is validation issue while creating and editing.
can you suggest any sample work for this kind of dynamic form, including maybe html helper, object oriented, validator.
attached image is raw version!
Upvotes: 0
Views: 679
Reputation: 4028
A simple way would be to put each form inside an user control (.ascx) and then load the control dynamically. If you use a model-view-presenter approach, each user control can have it's own presenter and deal with the details. I imagine that it must be another way to split a view in parts, but using an user control seems to be the most simple way of doing it.
Upvotes: 1