aceinthehole
aceinthehole

Reputation: 5232

In ASP.NET what is the name for HTML directive symbols <%# or <%= etc for executing code on the server side?

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!

Upvotes: 9

Views: 782

Answers (7)

johntrepreneur
johntrepreneur

Reputation: 4704

MSDN refers to them as Embedded Code Blocks.

Upvotes: 0

bdukes
bdukes

Reputation: 156055

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.

You might be interested in the following MSDN articles:

Upvotes: 4

Oleks
Oleks

Reputation: 32343

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

Upvotes: 2

Stilgar
Stilgar

Reputation: 23611

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.

Upvotes: 3

Dave Ward
Dave Ward

Reputation: 60590

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

Upvotes: 4

khr055
khr055

Reputation: 29042

I've heard that they are called constructs.

Upvotes: 3

Victor
Victor

Reputation: 4721

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

Upvotes: 4

Related Questions