What is the difference between <%#...%> and <%=...%> ? For example I wanted to take the username of the logged in user and I tried with "<%# Membership.GetUser().UserName %>" but this didn't work. Then I tried with <%= Membership.GetUser().UserName %> and with this works. Why with the first try ("<%# Membership.GetUser().UserName %>") didn't work but the second works fine (<%= Membership.GetUser().UserName %>) ?
With this code didn't work I can't get the field from "Membership.GetUser().UserName":
<div id="profileHeader">
<h1><%# Membership.GetUser().UserName %></h1>
</div>
With this code work I can get the field from "Membership.GetUser().UserName":
<div id="profileHeader">
<h1><%= Membership.GetUser().UserName %></h1>
</div>