471,092 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Dynamically writing Templates for DataList

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?
Nov 18 '05 #1
2 1237
Hi,

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

"stb" <si***@intisi.fsnet.co.uk> wrote in message
news:ek*************@tk2msftngp13.phx.gbl...
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?

Nov 18 '05 #2
stb
Is there any way of doing it without writing and loading a file, maybe
using the ItemTemplate property and the TemplateBuilder class?

"Shiva" <sh******@online.excite.com> wrote in message
news:eG*************@TK2MSFTNGP12.phx.gbl...
Hi,

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

"stb" <si***@intisi.fsnet.co.uk> wrote in message
news:ek*************@tk2msftngp13.phx.gbl...
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?

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Andrew Wied | last post: by
reply views Thread by Gaurav Gargate | last post: by
2 posts views Thread by Nathan Sokalski | last post: by
7 posts views Thread by Nathan Sokalski | last post: by
4 posts views Thread by .Net Sports | last post: by
3 posts views Thread by Peter | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.