What is the difference between <% %> and <%= %> in ASP.NET MVC? And when to use which?
<% %>
<%= %>
See also this question. MVC hasn't changed how these bee-stings work, just how often they're used.
Basically:
<%
<%@
<%$
<%=
<%#
<%--
Also new in ASP.Net 4:
<%:
1.4m articles
1.4m replys
5 comments
57.0k users