2

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

Thanks.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Simon Keep
  • 9,886
  • 9
  • 63
  • 78

2 Answers2

2

Here is a MSDN page: MSDN Embedded Code Blocks

<%    -  any code

<%=   -  shortcut for Response.Write()    

<%#   -  is for binding

<%--  -  is for comments
Aaron Hoffman
  • 6,604
  • 8
  • 56
  • 61
1

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

Community
  • 1
  • 1
Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794