0

我一直在使用它们,但我不确定你怎么称呼它们。

此外,在某处是否有关于它们的工作内容/具体工作方式的定义?我很难搜索,因为我不知道它们叫什么。

4

1 回答 1

1

嵌入式代码块。

这些有几个品种:

<%= %> is the equivalent of `Response.Write()`
<% %> runs server-side code, like an if-else block
<%: %> is for HTML-encoding the data
<%# %> is for data-binding expressions
<%@ %> is for directives, usually page directives in ASP.NET
于 2013-08-21T17:34:53.230 回答