Re: Building a rendered control with child controls
- From: "TS" <manofsteele1@xxxxxxxxxxxxx>
- Date: Fri, 27 Apr 2007 10:15:09 -0500
thanks walter
"Walter Wang [MSFT]" <wawang@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:Un8f$qJiHHA.4332@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi TS,rights.
I think a TextBox with validation is a special case here since you could
either use a composite control or implements IValidator interface to add
validation function to a class
(http://www.codeproject.com/aspnet/selfvalidatingtextbox.asp).
For a composite control with a single constituent control, the difference
between composition and inheritance would be:
1) A composite control will need to implement INamingContainer, which will
create a naming container for the children.
2) Inherited control still has public methods/properties for your user,
while a composite control will have to expose the only child to let your
user use the properties/methods directly.
Other than these, I believe other things such as performance will not be
affected.
Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
.
- References:
- Building a rendered control with child controls
- From: TS
- Re: Building a rendered control with child controls
- From: TS
- Re: Building a rendered control with child controls
- From: Walter Wang [MSFT]
- Building a rendered control with child controls
- Prev by Date: Re: Building a rendered control with child controls
- Previous by thread: Re: Building a rendered control with child controls
- Index(es):
Loading