I am developing a custom control to output an expandable list, with each expandable element being able to contain a different control(s).
I wish to be able to insert a User Control into this.
I have used the LoadControl method to load the control into my page where the custom control is located. I then add the loaded control to the custom control.
When I try to display this loaded control, I get an error "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)."
Does anybody know what I can do to get around this issue?
Regards
I wish to be able to insert a User Control into this.
I have used the LoadControl method to load the control into my page where the custom control is located. I then add the loaded control to the custom control.
When I try to display this loaded control, I get an error "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)."
Does anybody know what I can do to get around this issue?
Regards