Timothy Khouri Timothy Khouri - 7 months ago 46
ASP.NET (C#) Question

In ASP.NET, What is the 'ASP' code called?

More detail to my question:

HTML and JavaScript are called "client-side code".

C# and VB in the code behind files are termed "server-side code".

So what is inline-asp, and 'runat=server' code blocks called?

<!-- This is called "client-side" -->
<p>Hello World</p>
<script>alert("Hello World");</script>


// This is called "server-side"
public void Page_Load(object sender, EventArgs e)
Response.Write("Hello World");


<%-- What is this called ??? --%>
<asp:Label ID="MyLabel" runat="server" />
<% Response.Write("Hello World"); %>

The best term I can come up with is "Web Forms Code".


To be explicit, Microsoft calls them Embedded Code Blocks.


They are code blocks embeded into the page lifecycle by being called during the Render phase.