Composite control with editable panel.

R

Rick Gunderson

After searching google news I've seen lots of old questions on
composite controls and Panels but found no answers.

Has anyone ever successfully built a composite control that consists
of some fixed HTML (like some banner text) and a Panel control where
other controls can be dropped in the VS.NET IDE?

Regards,

Rick
 
K

Kelly Leahy

Has anyone ever successfully built a composite control
that consists
of some fixed HTML (like some banner text) and a Panel control where
other controls can be dropped in the VS.NET IDE?

I have not, in fact, but I'm working on one right now.
What I've found out is that you probably want
ParseChildrenAttribute(false) and in
your "CreateChildControls" you need to make your child
controls, remove the current child controls and add them
where they belong in your heirarchy, and also implement a
ReadWriteControlDesigner for your control. This will
allow your application to accept controls from the IDE.

I'm sorry I can't be of more help, but I can recommend a
few examples that have helped me along my road to
enlightenment...

a custom panel control:
http://www.sadeveloper.net/viewarticle.aspx?articleID=106

the quickstarts that come in .NET describe the use of
ParseChildrenAttribute(false) under "Authoring Custom
Controls" (retrieving inner content) in the ASP.net
section.

Best of luck.
 

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,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top