Nested controls got lost when changing any property at design time...

Z

Zarko Gajic

Hi,

I have a custom control with one InnerProperty: "Groups" - a collection of
Group (inherit from Object) objects.

Now, each Group has a Template property
(PersistenceMode.InnerDefaultProperty) where a user can place any type of
web control, something like (for one group):

<my control ....>
<Groups>
<Group>
<asp:TextBox ....>
</Group>
</Groups>
</my control>

I can add Groups using the designer editor (Collection editor) .. then go to
the "HTML" view to add the TextBox to a Group.

Now, the problem: every time I go back to design view and change any of the
properties of my control ... the <asp:TextBox> is removed.

Can anyone help?

~Zarko
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top