在ASP.NET中,用于在服务器端执行代码的HTML指令符号

时间:2022-01-04 14:53:14

Was trying to reference this the other day, and I've heard them called several things.

前几天试图引用它,我听到他们称之为几件事。

They are intrinsically hard to google for. Does this syntax have a proper name? Thanks!

他们本质上很难谷歌。这种语法是否有正确的名称?谢谢!

7 个解决方案

#1


4  

The Visual Web Developer Team calls them "Code Nuggets," but I don't think there's an official term that'll help you find them in MSDN.

Visual Web Developer团队称他们为“Code Nuggets”,但我认为没有一个官方术语可以帮助您在MSDN中找到它们。

You might be interested in the following MSDN articles:

您可能对以下MSDN文章感兴趣:

#2


4  

I call all variations of <% %> server tags. Dont know if they have another name.

我调用<%%>服务器标签的所有变体。不知道他们是否有其他名字。

#3


4  

I've always known them as "Expressions" (and/or "Code Expressions", "ASP.NET Expressions", and a few other variations).

我一直将它们称为“表达式”(和/或“代码表达式”,“ASP.NET表达式”以及其他一些变体)。

#4


3  

I've heard that they are called constructs.

我听说它们被称为构造。

#5


3  

I think they don't have a collective name. The links to MSDN in this article all call them with different names - Embedded Code Blocks (pure <% %>), construct (<%= %>), Data-binding syntax (<%# %>), ASP.NET Expressions (<%$ %>, Directives (<%@ ... %>), Server-side comments ( <%-- ... --%> ). The article itself calls them inline ASP.NET tags.

我认为他们没有集体名称。本文中指向MSDN的链接都使用不同的名称来调用它们 - 嵌入式代码块(纯<%%>),构造(<%=%>),数据绑定语法(<%#%>),ASP.NET表达式(<%$%>,指令(<%@ ...%>),服务器端注释(<% - ... - %>)。文章本身称它们为内联ASP.NET标记。

#6


2  

AFAIK, there is no common name for these constructions, but we use inline asp.net tags (* found a while ago here).

AFAIK,这些结构没有通用名称,但我们使用内联asp.net标签(*前一段时间发现)。

#7


0  

MSDN refers to them as Embedded Code Blocks.

MSDN将它们称为嵌入式代码块。

#1


4  

The Visual Web Developer Team calls them "Code Nuggets," but I don't think there's an official term that'll help you find them in MSDN.

Visual Web Developer团队称他们为“Code Nuggets”,但我认为没有一个官方术语可以帮助您在MSDN中找到它们。

You might be interested in the following MSDN articles:

您可能对以下MSDN文章感兴趣:

#2


4  

I call all variations of <% %> server tags. Dont know if they have another name.

我调用<%%>服务器标签的所有变体。不知道他们是否有其他名字。

#3


4  

I've always known them as "Expressions" (and/or "Code Expressions", "ASP.NET Expressions", and a few other variations).

我一直将它们称为“表达式”(和/或“代码表达式”,“ASP.NET表达式”以及其他一些变体)。

#4


3  

I've heard that they are called constructs.

我听说它们被称为构造。

#5


3  

I think they don't have a collective name. The links to MSDN in this article all call them with different names - Embedded Code Blocks (pure <% %>), construct (<%= %>), Data-binding syntax (<%# %>), ASP.NET Expressions (<%$ %>, Directives (<%@ ... %>), Server-side comments ( <%-- ... --%> ). The article itself calls them inline ASP.NET tags.

我认为他们没有集体名称。本文中指向MSDN的链接都使用不同的名称来调用它们 - 嵌入式代码块(纯<%%>),构造(<%=%>),数据绑定语法(<%#%>),ASP.NET表达式(<%$%>,指令(<%@ ...%>),服务器端注释(<% - ... - %>)。文章本身称它们为内联ASP.NET标记。

#6


2  

AFAIK, there is no common name for these constructions, but we use inline asp.net tags (* found a while ago here).

AFAIK,这些结构没有通用名称,但我们使用内联asp.net标签(*前一段时间发现)。

#7


0  

MSDN refers to them as Embedded Code Blocks.

MSDN将它们称为嵌入式代码块。