nested webcontrol collection designer tag error

K

kl

Hi,
my problem that the generated designer code "forgot" one opening xml tag ...

I made two composites webcontrols

1 "header" controls that contains "items" as collection (property name
as "Itemlist")

2 "menu" that contains "header" as collection (property name as "Panels")


Both of theses classes inherit from Webcontrol and are marked
as : ,ParseChildren(true)
,PersistChildren(false)

and for both the properties above i put this:
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
PersistenceMode(PersistenceMode.InnerProperty)

if I drop the first webcontrol on the form designer all works fine... i
can iterate thru the item list and the generated code is ok .


But when I drop "menu" on the form , the structure seems like this
<menu props...>
<header props...>
<item></item>
<item></item>
</header>
<header props...>
<item></item>
</header>
</PANELS>
</menu>

you can see that the opening tag "<PANELS>" is missing...
if i add this manually all works fine ....
Does anyone have an idea ?


Thanks
Karim Laurent
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top