Code in
<% %>
tags is for running arbitrary code, not for setting property values. Code in
<%= %>
tags is for rendering to the output stream. Code in
<%# %>
is for databinding. Code in
<%$ %>
is for expression bindings, but they execute too early in the page's life cycle.Güzel makaleler:
Expressions vs. Statements, part 2: ASP.NET Code Block Types: http://michielvoo.net/blog/expressions-vs-statements-part-2-asp-net-code-block-types/
Complex data binding expressions in ASP.NET: http://www.pluralsight-training.net/community/blogs/fritz/archive/2005/12/16/17507.aspx
Hiç yorum yok:
Yorum Gönder