Timothy Khouri Timothy Khouri -4 years ago 110
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".

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download