I want to build a server control. Which contain child custom control.
<MyParentControl>
<MyChildControl>
</MyChildControl>
</MyParentControl>
I don’t know it How to build. So, help me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Little bit of googling should do the trick for you – anyway, for starters, here are a couple of links:
http://msdn.microsoft.com/en-us/library/3257x3ea.aspx
http://www.beansoftware.com/ASP.NET-Tutorials/Custom-Server-Controls.aspx (see Composite server controls heading)
Edit: Oh! I see that you want to have template based controls – see below good article that should start to you on the same:
Building Templated Custom ASP.NET Server Controls (http://msdn.microsoft.com/en-us/library/aa478964.aspx)