In ASP.NET, what is called ASP code?

More on my question:

HTML and JavaScript are called "client code."

C # and VB in the files behind the code are called "server code".

So what is inline-asp code and the 'runat = server' code 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 form code."

+3
source share
5 answers

To be explicit, Microsoft calls them inline blocks of code.

http://msdn.microsoft.com/en-us/library/ms178135.aspx

They are code blocks embedded in the page life cycle called during the Render phase.

+14
source

ASP-, <% %>, <script> runat=server . - .

, <%@, . , <%=, writer.Write() Page.Render().

+9

ASP MSDN "script , " script " " script.

MSDN .

ASP <% % > , script. , .

, , script , . , script, . VBScript, .

(http://msdn.microsoft.com/en-us/library/ms524741.aspx)

+2

" " " ".

, .

+1

The code in the aspx file is called markup. It also includes static html. If you want to narrow it down to code in tags <% %>, just say “code blocks”.

Tags themselves <% %>, etc. are called "Bee Stings". Please note that this is just for the different types of tags <% %>, and not for the blocks of code that you create with them.

0
source

All Articles