Creating a list of items a person can enter.

M

Mufasa

I've got a user object that allows a user to enter a date type, a person's
name and the actual date. I want to have it so that they enter one and then
click a button and it will add another set of fields for them to enter. So
first there would be one set, they click add, then there would be two sets,
click add, then three, ....

The reason for this is that we don't know how many of these they want to
enter. So by creating the objects dynamically, we can in a sense have as
many as they want.

Is there an easy way to do this?

TIA - J.
 
G

gnewsgroup

I've got a user object that allows a user to enter a date type, a person's
name and the actual date. I want to have it so that they enter one and then
click a button and it will add another set of fields for them to enter. So
first there would be one set, they click add, then there would be two sets,
click add, then three, ....

The reason for this is that we don't know how many of these they want to
enter. So by creating the objects dynamically, we can in a sense have as
many as they want.

Is there an easy way to do this?

TIA - J.

Do you mean User Control by user object?

You can dynamically create the controls and add them to your page in
the Button's click event handler.
 

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

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top