Customize DataList ItemType?

C

chuck

Is it possible to create my own DataList ItemTypes? What I'd love to
do have code like:

<ME:MyDataList id="lst" runat="server">
<ParentItemTemplate>
I'm a parent and I have my own controls.
</ParentItemTemplate>
<ChildItemTemplate>
I'm a child and I have my own controls too.
</ChildItemTemplate
</ME:MyDataList>

I have very different layouts depending on the type of data being bound
to the datalist and I'm trying to avoid showing/hiding countless items
inside the ItemTemplate based on the type.

Thanks.
 

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,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top