Skip to content
<% %>
– is for inline code (especially logic flow)
<%$ %>
– is for evaluating expressions (like resource variables)
<%@ %>
– is for Page directives, registering assemblies, importing namespaces, etc.
<%= %>
– is short-hand for Response.Write
(discussed here)
<%# %>
– is used for data binding expressions.
<%: %>
– is short-hand for Response.Write(Server.HTMLEncode()) ASP.net 4.0+
<%#: %>
– is used for data binding expressions and is automatically HTMLEncoded.
<%-- --%>
– is for server-side comments
Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)