Avatar of dgloveruk
dgloveruk

asked on 

How can I pass controls and content through into a user control in vb ASP.NET?

I have a user control that is essentially dressing for page content.  It arranges a heading and content dropping it into placeholders within the controls markup.
e.g in the page using the control I want to have :
<uc1:UcPresentation runat="server" ID="UcPresentation1">
<Heading>
--various controls/content--
</Heading>
<Content>
--various controls/content--
</Content>
</uc1:UcPresentation>

Does anybody have an example of how to do this? I am struggling to find a VB example...
I found https://docs.microsoft.com/en-us/previous-versions/aspnet/36574bf6(v=vs.100) but these seems to go a lot further and make a series of templates and I could not see what to extract to make this into the much simpler requirement I have of just passing content through into placeholders.
Thanks,
ASP.NET* user controlsVB Script

Avatar of undefined
Last Comment
dgloveruk

8/22/2022 - Mon