In a Asp Net data bound control one can use the nice Eval() syntax:
<div><%# Eval("MyProp") %></div>
but it's not possible to combine with a conditional statement is it?:
<% if (Eval("MyProp")!="") { %>
<div><%# Eval("MyProp") %></div>
<%} %>
Would be nice to have that option.
So - my option is to put part of the markup in CodeBehind. I really liked to keep it out of there. Any other possibilities?