Google Analytics İzleme

16 Şubat 2011

asp.net'de <% %> etiketlerinin anlamları

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/
Using Expression Builders in ASP.NET: http://www.4guysfromrolla.com/articles/022509-1.aspx

Hiç yorum yok: