Accessing Dynamically added controls after postback


William Manring

I am creating some controls dynamically on a web page.
Non of the dynamically added controls are available after
a post back. I'm sure I'm missing something simple, but
what to I have to do to get dynamically added controls to
be part of the viewstate of the page?



Tim Boland

There is a an option in the property's of each control
marked "Post Back" set this to "False"

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