Skip to main content
GameDev.net gamedev.net
🔒 Locked

[web] Custom ASP.NET Controls at Design Time

Started by NickHighIQ Mar 26, 2008 at 6:05 PM 0 replies 1.6k views
Original Post
NickHighIQ
NickHighIQ
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?
Nick Wilson - Junior C# Developer | See my crappy site

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.