I currently have this block of code (or something similiar) on almost all my pages:
<div class="tasks">
<ul>
<li><a href="#">Do something</a></li>
<li><a href="#">Do something else</a></li>
</ul>
</div>
However, I need to turn this into a user control. I'd like something that looks like the following:
<foo:TaskList id="foo" runat="server">
<Task><a href="#">Do something</a></Task>
<Task><a href="#">Do something else</a></Task>
</foo:TaskList>
or even:
<foo:TaskList id="foo" runat="server">
<Tasks>
<ul>
<li><a href="#">Do something</a></li>
<li><a href="#">Do something else</a></li>
</ul>
</Tasks>
</foo:TaskList>
I realise that I'm using the "Template" concept there and I also realise that that's not how you're meant to use Template user controls. So.. how am I meant to wrap up a variable piece of HTML into a User Control?
PS. I don't want to use DataBinding or code-behind to populate this control. All the items must be visible in the ASPX file.