Hi there,
TO see them at run-time, you need to add them to your page somehow. Right now, all you do is create an in-memory control.
To see the controls, try this:
1. Add a panel to the page. Let's say it's called Panel1.
2. Add the controls to the Controls collection of the panel:
Panel1.Controls.Add(newTextBox);
Now you control should be visible on the page.
Instead of Panels, you could use other container-like controls as well.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out
this post.