all groups > asp.net building controls > april 2006 >
You're in the

asp.net building controls

group:

Custom Panel


Custom Panel CMM
4/17/2006 8:56:36 PM
asp.net building controls:
Can't figure this one out... seems like it should be a no-brainer. Is it
possible to create a UserControl that can act as a container a la the Panel
control?... not a "naming container" or anything fancy.... just a simple
container.

Basically I have a pretty custom table that I'd like to reuse (code-reuse---
always a good thing). Seems to me that it should be as easy as creating a
UserControl and plopping
a placeholder in it for the area where controls can be added by the page
designer. Wouldn't this be much better than MasterPages or things of the
sort for creating truly clean websites?

--
-C. Moya
www.cmoya.com


Re: Custom Panel Karl Seguin [MVP]
4/17/2006 9:57:51 PM
What you are talking about is achieved only via a custom server control -
which, depending on what you are doing, isn't a trivial task.

A good place to start might be:
http://scottonwriting.net/sowblog/posts/355.aspx

But there's really no way to achieve this with a user control - you can add
them to the toolbox :(

Karl

--
http://www.openmymind.net/



[quoted text, click to view]

AddThis Social Bookmark Button