I’m just getting started with Custom User Controls in C# and I’m wondering if there are any examples out there of how to write one which accepts nested tags?
For example, when you create an asp:repeater you can add a nested tag for itemtemplate.
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.
I wrote a blog post about this some time ago. In brief, if you had a control with the following markup:
You’d need the code in the control to be along the lines of: