Hi TS,
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 (
[email protected], 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 rights.