11

Possible Duplicate:
ASP.NET “special” tags

Is there a proper name for <%...> in ASP.NET, or do people really call it "Angle Bracket Percent"?

Community
  • 1
  • 1
carlbenson
  • 3,177
  • 5
  • 35
  • 54

5 Answers5

9

in ASP.NET <% ... %> represents server-side code which has been in-lined to an ASPX HTML document. The name would be dependent on which variety.

<% ... %> Normal Code block

<%= ... %> Serverside code wrapped in Response.Write()

<%# ... %> Specific to Databinding

<%-- --%> Server side comment

<%$ ... %> for expression bindings

zellio
  • 31,308
  • 1
  • 42
  • 61
  • 1
    Let's not forget <%$ %> for expression bindings! – ScottE Oct 24 '11 at 10:58
  • And <%: ... %> is the same as <%= ... %>, but the output is HTML encoded and they've also introduced <%#: ... %> for HTML-encoded data-binding in .Net 4.5. – keithl8041 Aug 15 '14 at 12:15
6

See Meaning of the Various Symbols in aspx page for more information on this topic.

According to MSDN, they are called code render blocks.

Community
  • 1
  • 1
pseudocoder
  • 4,314
  • 2
  • 25
  • 40
3

I've always called them code render blocks.

http://msdn.microsoft.com/en-us/library/k6xeyd4z.aspx

ScottE
  • 21,530
  • 18
  • 94
  • 131
2

In this blog post they're called code nuggets.

ScottGu's Blog

b3n
  • 3,805
  • 5
  • 31
  • 46
1

Its just a notation for an ASP/ASP.NET inline code block.

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445