I am almost embarrassed to ask this question, but here we go ...
I am not an expert with user controls and do not need design advice on how to try to achieve a certain desired functionality.
The goal is to have a usercontrol that will display as a complex structure of html and css elements to form an elegant container box. The problem is how to populate the contents of the window, as each instance of usercontrol will have its own separate HTML content. The contents of the usercontrol div container will be nested in the structure of the displayed html. It is undesirable to program user control content or use properties.
In the psuedo code, the desired syntax would look something like this:
<usercontrol Title="Some Title"><p>some random html content</p></usercontrol>
Sample visualized user controls:
<div class="CommonBox"> <div class="Title">Some Title</div> <div class="Content"><p>some random html content</p></div> </div>
Hope my explanation is enough. Does it make sense to anyone or is the desired functionality unattainable?
Hooray!
EDIT
I tried to offer boilerplate user management in the hope of coming up with a decent solution. I "backbacked" this site and now has a working template user control. My next question is: how can I programmatically access the controls embedded in the template ... let's say there is a text box control in the Description template from the link to the example, and I want to set its value programmatically? Is it possible?
source share