Hello,
Do following algorithm you have to concentrate before starting write code:
1. How many types of control would be required e.g. TetxBox, Label, DropDown, CheckBox etc...
2. Created Component for each control
- 2.1: Apply validation on each control whatever you would like e.g Required, Numeric, AlphaNumeric...
- 2.2: Publish you component (for drag and drop in your project)
3. Put one PlaceHolder in your forms for appending dynamic control in your forms.
4. Loop each record from database
- 4.1: Identify current records Control type and accordingly add component (that you have created).
- 4.2: Increase x and y position for the next control.
- 4.3: Repeat step 4 until all records has been fetched.
Please do let me know if you have any query.
Thanks,
Imdadhusen