Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Name for Angle Bracket Percent Sign [duplicate]

Possible Duplicate:
ASP.NET “special” tags

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

like image 262
carlbenson Avatar asked Oct 24 '11 00:10

carlbenson


4 Answers

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

like image 131
zellio Avatar answered Nov 16 '22 23:11

zellio


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

According to MSDN, they are called code render blocks.

like image 31
pseudocoder Avatar answered Nov 17 '22 01:11

pseudocoder


I've always called them code render blocks.

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

like image 3
ScottE Avatar answered Nov 16 '22 23:11

ScottE


In this blog post they're called code nuggets.

ScottGu's Blog

like image 2
b3n Avatar answered Nov 17 '22 01:11

b3n