Preserving dynamic controls across postbacks
-
Hi everyone, I have a web forms page, which contains a dropdownlist. The dropdownlist posts back to an event handler which adds a new button to the controls collection of a PlaceHolder. The text property of this button is set to the text of the DropDownList's selected item. My problem is that after the first time I select my dropdownlist, it changes the text of the existing button in the PlaceHolder, as apposed to adding a new Button to the placeholder. How can I do that? I very much appreciate any help I can get this on this. Thanks.
-
Hi everyone, I have a web forms page, which contains a dropdownlist. The dropdownlist posts back to an event handler which adds a new button to the controls collection of a PlaceHolder. The text property of this button is set to the text of the DropDownList's selected item. My problem is that after the first time I select my dropdownlist, it changes the text of the existing button in the PlaceHolder, as apposed to adding a new Button to the placeholder. How can I do that? I very much appreciate any help I can get this on this. Thanks.
Try searching the DOTNET mailing list archives; here is one post that might help a little bit, though I could have sworn I've seen more similar to what you're trying to find. Sorry I can't be of more help, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002