Yes. Fairly easily..here's some pseudo/real code:
void button_click(args){
TextBox t = new TextBox();
t.id = "userName";
APlaceHolderOnYourPage.Controls.Add(t);
}
You'll find the tricky thing is that those controls aren't "permenantly"
added to the page. That is, if you click the button again, or another
button, you need to re-add all items that were added. Denis Bauer has a
placeholder that is meant to help you do that (never used it)
http://www.denisbauer.com/ASPNETCont...aceholder.aspx or
you can simply track everything you added in the viewstate and then readd
those items before adding anything new (which is what his control probably
does for you).
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Dave" <> wrote in message
news:...
> Hi!
>
> I'm an experienced C++ developer, but am new to ASP.NET. I need to
develop
> a database querying application that we need here, and would like to try
to
> do it in ASP.NET and C#.
>
> The thing that I'm not sure is doable, is that I'd like to have support
for
> buttons on the form that, when clicked, will add new text input fields
into
> the form. So, the form needs to be dynamically "growable", using
> self-modifying code within the ASP itself.
>
> Can this be done?
>
> TIA
>
> - Dave
>
>