Last post Sep 09, 2008 05:55 PM by iceweasel
Jan 20, 2007 06:15 PM|Dano|LINK
Trying to concatenate a string literal with a eval statement for a label in my datalist itemtemplate:
works fine and properly shows the date posted if I remove the POSTED ON: above
If I run it as above, get ONLY the POSTED ON: displaying, with the eval seemingly not performing (but no error)
know I can manage this through rowdatabound in this datalist I'm using, but this seems simpler
(also, know I could combine the literal and the bind directly in the template with:
POSTED ON: <%# eval("TopicPosted") %> <br />
but need the label here as I turn it's visibility on/off due to other conditions)
is it the server control somehow does not allow concatenating a literal with an eval in a property?
Binding eval DataBind DataBinding
Jan 20, 2007 07:35 PM|vivek_iit|LINK
Did you try: text='<%# "POSTED ON:" +
Hope this helps,
Sep 09, 2008 05:55 PM|iceweasel|LINK
text='<%# "POSTED ON: " + eval("TopicPosted") %>'