Help! I have a web form that contains a placeholder. My code generates a series of web controls (textboxes, radiobuttonlists etc) and adds them to this placeholder one at a time. This works fine. A user then fills in the resulting HTML form and submits the form. This works fine and all the controls are still on the page after the postback has occurred. However, sometimes the user is loading a saved form which basically means that the form is built in the same way, but in addition an XML document is accessed and used to pre-populate some of the controls. If this is the case then clicking the same submit button loses all my dynamic controls. It is as though the placeholder has suddenly decided to disable its view state (although I've checked and this property remains set to true). I hope this makes sense because it is baffling me. The only programmatic difference between the two scenarios is that the latter one calls an extra method to pre-populate the controls. When the page has loaded it is effectively identical except that some form elements already contain data. Nothing else is different so why is the placeholder empty when the page is returned? It beats me. Anyone have any ideas? I wish I could give you some example code but the class is enormous I'm afraid...
Tom
Tom
