Using the ASCX transformation type, is there a way to wrap content in the IF statement that isn't all on one line?
This is how it is properly working right now:
<%# IfEmpty(Eval("ProgramCost"), "", "<h3>Estimated Program Cost</h3><p><strong>Total Tuition, Fees & Books:</strong> " + Eval("ProgramCost") + "</p>") %>
Here is how I'd like to be able to use it (but it currently gives me an error).
<%
IfEmpty(Eval("ProgramCost"))
{
%>
<h3>Estimated Program Cost</h3>
<p><strong>Total Tuition, Fees & Books:</strong> <%# Eval("ProgramCost") %></p>
<%
}
%>
There has got to be a way to make this happen!