[web] Custom ASP.NET Controls at Design Time
I apologise for the fact that my subject doesn't really explain what I'm asking much, but here goes.
I'm developing a custom composite web control which consists of a bunch of controls thrown together into one, however it never rendered properly at design-time. I've just done a bit of research and fixed that problem, but in doing so have created another.
In the designer class I have overridden the GetDesignTimeHTML method, and I return a nicely aligned table with a bunch of controls. This creates a secondary problem, though - now, in the designer, all the controls can be individually selected and their properties edited. This has no effect at run-time, but it is undesirable, nonetheless. I just want the designer to treat it as one big control.
I've had a look at the ParseChildren and ParseChildControls attributes, but I can't seem to figure out exactly what I have to do. Any ideas?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement