Creating a list of items a person can enter.

Creating a list of items a person can enter.

am 09.01.2008 21:50:44 von 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.

Re: Creating a list of items a person can enter.

am 10.01.2008 04:35:20 von gnewsgroup

On Jan 9, 3:50 pm, "Mufasa" wrote:
> 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.