Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > nested webcontrol collection designer tag error

Thread Tools

nested webcontrol collection designer tag error

Posts: n/a
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)

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

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...>
<header props...>

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

Karim Laurent

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Řyvind Isaksen ASP .Net 1 05-18-2007 09:24 AM
Persisting collection data of a webcontrol when leaving the collection editor in VS2005 ASP .Net Building Controls 1 05-19-2006 03:49 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
nested collection property VS designer error kl ASP .Net Building Controls 0 10-12-2004 12:19 PM
WebControl Designer Problem using Custom Collection Todd Lucas via .NET 247 ASP .Net Building Controls 2 05-28-2004 02:34 PM