Dynamically writing Templates for DataList

  • Thread starter Thread starter stb
  • Start date Start date
S

stb

Hi.
Is it possible to write inline Templates for a DataList dynamically in the
HTML code, based on the DataSet that is bound to the DataList?

Anyone know how?
 
Hi,

You can dynamically load templates from files based on the conditions, using
LoadTemplate(). Please refer to http://tinyurl.com/5e2xr for an example.

Hi.
Is it possible to write inline Templates for a DataList dynamically in the
HTML code, based on the DataSet that is bound to the DataList?

Anyone know how?
 
Is there any way of doing it without writing and loading a file, maybe
using the ItemTemplate property and the TemplateBuilder class?
 

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

Back
Top