Creating a custom control which contans user controls

N

Nils

I need to create a custom control which contains both default user
controls and any other html or control the developer uses in between
start and end tags.

The final result should be able to do this on the ASPX page (or within
another control for that matter):

<CustomControl:myControl runat="server" id="whatever">
<!-- html goes here -->
blah blah blah

<!-- plus any other controls the developer chooses to add to the
control.....-->
<asp:DataGrid runat="server" id="DataGrid"></asp:DataGrid>

</CustomControl:myControl>

Does anybody have any ideas on how to accomplish this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,113
Latest member
Vinay KumarNevatia
Top