M
MattB
Hi. I'm on my second redesign of a dynamic form I need to create and I'm
looking for good examples and/or suggestions.
I have a web application that is being distributed to different clients
of ours and it has a form for people to fill out with their personal
information. Right now it's static but I'd like to be able to make it
dynamic so a client could just put a list of fields in a web.config key
and those would be the fields that would show up in the form.
My last attempt seemed to be going well using a datagrid until I
realized I was rendering fields in the OnItemDataBound event and that
was preventing me from being able to get any values when the form was
submitted due to the order of events.
I have fields that have different data types involved, so my last
approach would look at the field and based on field name and/or type I'd
render a different kind of control. This allowed me to do things like:
display the password field using an input mask, render the credit card
input with three controls: one for the number and two for the date. I
had several other exception fields, and the rest would just be rendered
according to the data type (text box for character, checkbox for
logical, etc).
So before I try again and end up with a nice-looking dynamic form I
can't get information back from, I thought I'd ask the experts. I'd
particularly like to just see a good example. I'd prefer it to be
vb.net, but I'd take whatever I can get. TIA!
Matt
looking for good examples and/or suggestions.
I have a web application that is being distributed to different clients
of ours and it has a form for people to fill out with their personal
information. Right now it's static but I'd like to be able to make it
dynamic so a client could just put a list of fields in a web.config key
and those would be the fields that would show up in the form.
My last attempt seemed to be going well using a datagrid until I
realized I was rendering fields in the OnItemDataBound event and that
was preventing me from being able to get any values when the form was
submitted due to the order of events.
I have fields that have different data types involved, so my last
approach would look at the field and based on field name and/or type I'd
render a different kind of control. This allowed me to do things like:
display the password field using an input mask, render the credit card
input with three controls: one for the number and two for the date. I
had several other exception fields, and the rest would just be rendered
according to the data type (text box for character, checkbox for
logical, etc).
So before I try again and end up with a nice-looking dynamic form I
can't get information back from, I thought I'd ask the experts. I'd
particularly like to just see a good example. I'd prefer it to be
vb.net, but I'd take whatever I can get. TIA!
Matt