Possible Duplicate:
ASP.NET “special” tags
What is the difference between <%: %>
and <%= %>
?
<%= ... %>
is the equivalent of Response.Write(). The <%: ... %>
tag is identical, except that it auto-html-encodes the value within the tag
See the blog post HTML Encoding Code Blocks With ASP.NET 4. Basically the colon version (new to 4.0) does the HTML encoding for you.