I was using ASP.NET Web Forms and ASP.NET MVC for some period of time.
So <%= %>
in views mean Response.Write()
, <%: %>
introduced in MVC adds html escaping.
In SqlDataSource control designer generates something like this ConnectionString="<%$ ConnectionStrings:FooConnectionString %>"
and in repeater you use <%# Eval("") %>
sytax.
My question is what exactly do <%$ %>
and <%# %>
tags, what methods they traslated into and how do they behave?