Dear Friends,
In my project i want to display the controls from database. Let me explain the concept can anyone please guide me how to write the code for that.
For example,
In my table am having columns like,
1. Label_Name 2. Control_Name 3. Maximum_Length 4. Mandatory_Status
At every time while am opening the form, controls should generate based on the table details.
Example,
If Field and datas in tables like,
Label_Name : Test
Control : Textbox
Maximum_Length :20
Mandatory_Status :Y
Then while i loading the form, form should contains,
Label name as "Test" corresponding control as "Textbox" and it should allow only 20 fields and it should be a mandatory one.
How can i achieve this task. can anyone please guide me to figure out this code.
Thanks in advance.