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
  • 698,132
  • 130
  • 858
  • 1,229
Simon Keep
  • 9,678
  • 8
  • 61
  • 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,186
  • 8
  • 55
  • 59
1

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

Community
  • 1
  • 1
Joel Coehoorn
  • 380,066
  • 110
  • 546
  • 781