I have the following piece of code:
<div id='mymodal' class="modal hide fade <%# CssClass %>">
<div class="modal-header">
<asp:HyperLink ID="closePopup" NavigateUrl='<%# CloseLink %>' CssClass="close" runat="server" >×</asp:HyperLink>
<h3>
<asp:Literal ID="header" Text='<%# Header %>' runat="server" />
</h3>
</div>
<div class="modal-body">
<asp:Literal ID="body" Text='<%# Body %>' runat="server" />
</div>
</div>
The first CssClass binding works either with <%# or <%=, while the other ones only work with <%# + codebehind DataBind() (if I use <%=, then the two Literals display literally the "<%= Body %>" text).
What is the use of both approaches? Why does it work this way? Which are the advantages of one over the other?