开发者

Name for ASP/ASP.NET Short Tags

Is there a parti开发者_开发技巧cular name for <% and %>.


Scott Gu calls these Code Nuggets. So thats what I go with.

http://weblogs.asp.net/scottgu/archive/2010/04/06/new-lt-gt-syntax-for-html-encoding-output-in-asp-net-4-and-asp-net-mvc-2.aspx


<% %> is usually referred to as a "server-side code block" or "code rendering blocks".

http://quickstarts.asp.net/QuickstartV20/aspnet/doc/pages/syntax.aspx

Which is different from <%# %>, which is a "databinding code block"

and <%$ %> is an 'expression code block'. (introduced in .NET 2.0)


They were nick named a long time ago as Yellow Tags, because of how Visual Studio highlighted them in yellow.


I think they are just called delimiters.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜