Link to home
Start Free TrialLog in
Avatar of David Glover
David GloverFlag for United Kingdom of Great Britain and Northern Ireland

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,
ASKER CERTIFIED SOLUTION
Avatar of David Glover
David Glover
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial