0

Possible Duplicate:
Are <%: and <%= the same thing as embbed code (expression) blocks

As clear from the heading I want to know the difference between <%: variable%> and <%= variable%> in ASP.NET.

Community
  • 1
  • 1
avirk
  • 3,050
  • 7
  • 38
  • 57
  • 1
    Possible duplicate: http://stackoverflow.com/questions/2676236/are-and-the-same-thing-as-embbed-code-expression-blocks or http://stackoverflow.com/questions/517721/in-asp-net-what-is-the-difference-between-and?rq=1 – JayC Nov 07 '12 at 04:42

1 Answers1

6

They do basically the same but <%: variable%> also html-encodes the output.

Ivan Ferić
  • 4,725
  • 11
  • 37
  • 47