Need a generic filling form generator.

J

Jensen bredal

Hello,
I need to write different kind of forms that the customer can use to enter
data and save the data into database. (The data access will be hand coded)

My problem is that the form may vary .

I therefore need an engine , that can produce the form based on let say an
xml file.
The form may contain textboxes, buttons , labels , pictures etc...

I have heard of xslt. Is it the way to go?

Is there other smart ways of doing this. If any asp.net beta 2 feature
allows this, please let me know.

Many thanks in advance

JB
 
R

Rob Schieber

Jensen said:
Hello,
I need to write different kind of forms that the customer can use to enter
data and save the data into database. (The data access will be hand coded)

My problem is that the form may vary .

I therefore need an engine , that can produce the form based on let say an
xml file.
The form may contain textboxes, buttons , labels , pictures etc...

I have heard of xslt. Is it the way to go?

Is there other smart ways of doing this. If any asp.net beta 2 feature
allows this, please let me know.

Many thanks in advance

JB

I don't think xslt is going to buy you anything for asp.net because you
won't be able to access the output in the code behind. I would suggest
parsing the xml file and dynamically adding server controls (i.e.
System.Web.UI.WebControl.TextBox/DropDownList etc.) to the page or
something like that. At least you will be able to programatically
access the inputs.
 
K

KMA

Indeed, the key issue is how do you access the keyed in data.

for one page I append an identifier to each repeated control, txtAddress_1,
txtAddress_2 etc.

Then you can iterate the controls, determine their function based on the
name and do something useful with the data content.
 
J

Jensen bredal

I don't think xslt is going to buy you anything for asp.net because you
won't be able to access the output in the code behind. I would suggest
parsing the xml file and dynamically adding server controls (i.e.
System.Web.UI.WebControl.TextBox/DropDownList etc.) to the page or
something like that. At least you will be able to programatically access
the inputs.

This sounds reasonable.
Thank you
JB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top