ASP.Net: User controls added to placeholder dynamically cannot retrieve values.

Posted by Steve Horn on Stack Overflow See other posts from Stack Overflow or by Steve Horn
Published on 2008-09-19T14:53:15Z Indexed on 2010/05/03 17:48 UTC
Read the original article Hit count: 421

Filed under:
|
|

I am adding some user controls dynamically to a PlaceHolder server control. My user control consists of some labels and some textbox controls.

When I submit the form and try to view the contents of the textboxes (within each user control) on the server, they are empty.

When the postback completes, the textboxes have the data that I entered prior to postback. This tells me that the text in the boxes are being retained through ViewState. I just don't know why I can't find them when I'm debugging.

Can someone please tell me why I would not be seeing the data the user entered on the server?

Thanks for any help.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about postback