Hey Folks,
I am dynamically constructing a custom control on a page based on a user deciding they need more inputs. The best way to think of it is, you have a page that allows you to enter the name of 1 friend. You, however, have 10 friends. The page gives you to the option of adding more names to the form by clicking a link that says 'I have more friends'. When you clink the link, it adds a new TextBox to the page. This is a very simple example, but explains the behavior of the custom control I am creating without torturing everyone with source code.
The problem that I'm experiencing is the TextBox I create dynamically does not remember the *input* text after the first PostBack. The controls are being recreated correctly. However, in order for the TextBox to *remember* its ViewState (in this case) is to manually cause a PostBack (not programmatically). After subsequent PostBack occu ...
Go to the complete details ...