Dynamically add controls on a web page

G

Guest

Hi,
I ahave a web page, on which i have a placeholder control, a button control
.. When i click on the button control it shoul add a user control to the
placeholder control. I tried the same with textbox control, but whenever i
click the button it adds only one textbox control to the page. How can i add
multiple controls to the placehoder control on postback & also maintain
viewstate state of the previously added controls. I tried doing the same in
the page init method, but it does not work.

Any links, samples or suggestions would be of help

Thanks
Prasad
 

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

Top