User controls lose data
Hello,
I have a problem with using user controls, so I thougt you may help me.
I'm building a user control, and create dynamic textboxes inside it on load.
The problem is that when I do a postback on the page that owns this user control, all the textboxes are lost.
I could generate these textboxes again on every postback, but I want the user to enter text inside the textboxes, so the data inside the textboxes is important for me.
Do you know how to solve it? It's probably some games with viewstate.
Thanks, Edi.
|