Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / March 2005

Tip: Looking for answers? Try searching our database.

Child control renders at desing-time as if it is in run-time...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zarko Gajic - 14 Mar 2005 15:31 GMT
Hi, I have a problem with design-time. The problem is rather hard to
describe in a few sentences ... so I hope someone will reply asking for more
info. For the start here's the situation (striped down to what I believe is
crucial)

1. I have a custom "ReadWriteControlDesigner" type of control (you can drop
controls on it .. much like Panel). I'm using rendering (not composition).
Since ReadWriteControlDesigner has its flaws, the control does not render
100% at design time (expected) when dropped on a form (since some more
controls are added in RenderBeginTag - for the run-time experience). I can
live with that.

2. When this Child is placed in some other container control (composite
control, NOT ReadWriteControlDesigner) .. the Child control appears at
design-time as it appears at run-time.

Now, this produces some weird results...

p.s.
The true problem is when the Child control uses composition (along with
ReadWriteControlDesigner) ... at design time all child controls (of the
Child) get persisted in designer .. which leads to bad parsing .. so to
speak

p.s.2
I know one *should not* use composition along with PersistChildren(true) and
ParseChildren(false). I'm just not sure if this is "should not" or "must
not".

Anybody?

~Zarko
Zarko Gajic - 16 Mar 2005 08:54 GMT
Anybody?

Come on MVP's ... :)

~Zarko

> Hi, I have a problem with design-time. The problem is rather hard to
> describe in a few sentences ... so I hope someone will reply asking for more
[quoted text clipped - 28 lines]
>
> ~Zarko

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.