Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Generate controls from database

$
0
0

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.


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>