>>Hi,
>>I have a WebControl - where I programmatically add new controls.
>>During Controls.add() - I check Controls.count - it grows... for example it has now 35 controls
>>
>>I have a button on this page cmdSave - in Click event I check Me.Controls.count - it has just 9 controls.. most of them - controls which I exact drop on control during design time.
>>
>>The question is..
>>How can I get collection of controls which I add to page programmatically
>>
>>Thanks
>>Denis
>
>So you have a custom control that you add to your form that contains dynamically added other custom controls? Am I understanding this correctly?
The background of task.
I load an XML file.. which contains controlset.. and diffrent xml files contains diffrent control set. I display it in UserControl using Controls.add()... after user click SAVE.. I want to save values back to XML file.. and.. I have not enough controls! :-[
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only