supply itemtemplate for datalist at runtime

T

Tim Mackey

hi,
i'm programattically creating a datalist and rendering it to the page via a htmltextwriter.
i want to supply the itemtemplate at runtime but don't know how to do this.
i read the help at ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWebUIITemplateClassTopic.htm
but i don't understand how that translates from what i'm familiar with in terms of a html template.. e.g:
<table><tr><td><% Container.DataItem %></td></tr></table>

is there some way to just use a string? i'm probably being too simplistic.
thanks for any help
tim


\\ email: tim at mackey dot ie //
\\ blog: http://tim.mackey.ie //
67d0ebfec70e8db3
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top