Web Development

General discussion


Dynamic html form generation

By funlurn ·
Is it possible to generate html form from visual basic form fields like values stored in database.
for e.g in database there are fields stored with type as textbox and properties like top=200,left=3000 etc.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by funlurn In reply to Dynamic html form generat ...


I have tried to generate html pages using following logic.

1) Storing left and top co-ordinates of lables, buttons etc. form items into database table. To generate vb form, one need to carefull on placing form items line by line.

2) By using stored co-ordinates, html page is generated. Here table width is considered by calculating maximum fields in a row and as per that <tr><td> are generated.

3) Fields which have +-100 co-ordinates are displayed in single line.

for eg. if two fields have top as 1000 and 1050 then they will be displayed on single line.

This helped to generate html form with same fields in VB form.

Related Discussions

Related Forums