What is the difference between <% %> and <%= %> in ASP.NET MVC? And when to use which?
<% %>
<%= %>
<%= %> writes to the output stream (usually html) while <% %> is for executing arbitrary script code.