Simon Keep
Simon Keep

Reputation: 10022

Where can I find information on code blocks?

Does anyone know a good website that summarises what you can do with code blocks (i.e. <% <%= <%# etc) in ASP.Net?

Thanks.

Upvotes: 2

Views: 149

Answers (2)

Aaron Hoffman
Aaron Hoffman

Reputation: 6962

Here is a MSDN page: MSDN Embedded Code Blocks

<%    -  any code

<%=   -  shortcut for Response.Write()    

<%#   -  is for binding

<%--  -  is for comments

Upvotes: 2

Joel Coehoorn
Joel Coehoorn

Reputation: 416149

This question should be helpful:
When should I use # and = in ASP.NET controls?

Upvotes: 1

Related Questions