Add .Net Control to Web Custom Control


 I want to add .NET Control (like: TextBox, Button...) to Web Custom Control.
How i can do it? 

Alphavn
0
alphavn
3/4/2008 7:39:31 PM
📁 asp.net.custom-server-controls
📃 3498 articles.
⭐ 0 followers.

💬 2 Replies
👁️‍🗨️ 2089 Views



That's called a composite control 

-- "Mark As Answer" if my reply helped you --
0
gunteman
3/5/2008 1:07:55 AM

Hello Guys
What gunteman said, that is one approach and in most cases the right one.
But its also possible to add child controls to a Control thats inherit from WebControl itself.
Be sure to implement INamingContainer to that inherited Control too, thats the important point of that approach.

--
Microsoft MVP - Visual Developer ASP / ASP.NET

- http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
0
Peter
3/5/2008 8:59:49 AM
Reply: