Name for ASP/ASP.NET Short Tags

自闭症网瘾萝莉.ら 提交于 2019-12-22 21:46:02

问题


Is there a particular name for <% and %>.


回答1:


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




回答2:


<% %> 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)




回答3:


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




回答4:


I think they are just called delimiters.



来源:https://stackoverflow.com/questions/4088207/name-for-asp-asp-net-short-tags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!