i have come across different symbols in .aspx page of asp.net
<%#eval(expr) %> <%#bind(expr) %> <% %> - specifying c# code in aspx page <%$ %> - specifying sql connection string in <asp:sqldatasource>
is there underlying logic behind these symbols or syntax have remember blindly? <% %> mean in general ?
please me.
thanks in anticipation
it syntax.
<% %>
short <script runat="server"> </script>
aka code render blocks.
<%# %>
binding expressions (plus above).
<%= %>
above + response.write()
.
<%: %>
above + response.write()
wrapped in html.encode
(new in .net 4.0).
<%$ %>
asp.net expression, used bind configuration or resource file data during runtime.
Comments
Post a Comment