W
WALDO
I have a Webcontrol that was supposed to act like a panel control. I
manipulated a TemplatedControlDesigner to make an "Edit mode". I save my
template to the controls collection during design-time. Then I use
GetPersistInnerHtml with ControlPersister to push the controls
collection back to the aspx page. It works very well after edit mode.
My problem is initialization. My control won't pick up the inner tags
from the html in the aspx on the first go-round. Since it didn't pick
them up, it pushes blank back out to the aspx, thus clearing my inner
html. I've been fiddling with ParseChildren and PersistChildren and
overriding my Controls property, setting the PersistenceMode and
DesignerSerializationVisibility attributes all day. I can't quite find
the right combination. This thing gets them perfectly during runtime.
I need to know how to get them at design time. Any Ideas?
manipulated a TemplatedControlDesigner to make an "Edit mode". I save my
template to the controls collection during design-time. Then I use
GetPersistInnerHtml with ControlPersister to push the controls
collection back to the aspx page. It works very well after edit mode.
My problem is initialization. My control won't pick up the inner tags
from the html in the aspx on the first go-round. Since it didn't pick
them up, it pushes blank back out to the aspx, thus clearing my inner
html. I've been fiddling with ParseChildren and PersistChildren and
overriding my Controls property, setting the PersistenceMode and
DesignerSerializationVisibility attributes all day. I can't quite find
the right combination. This thing gets them perfectly during runtime.
I need to know how to get them at design time. Any Ideas?