在ASP.NET中,什么是“ASP”code叫什么? [英] In ASP.NET, What is the 'ASP' code called?
本文介绍了在ASP.NET中,什么是“ASP”code叫什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
更详细的我的问题:
HTML和JavaScript被称为客户端code。
HTML and JavaScript are called "client-side code".
下在文件后面的code#和VB被称为服务器端code。
C# and VB in the code behind files are termed "server-side code".
那么,什么是内联ASP,和所谓的RUNAT =服务器'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"); %>
我能拿出最好的术语是Web窗体code。
The best term I can come up with is "Web Forms Code".
推荐答案
要明确的是,微软称它们为嵌入式code块。
To be explicit, Microsoft calls them Embedded Code Blocks.
<一个href=\"http://msdn.microsoft.com/en-us/library/ms178135.aspx\">http://msdn.microsoft.com/en-us/library/ms178135.aspx
它们镶嵌到页面生命周期code块通过在呈现阶段被调用。
They are code blocks embeded into the page lifecycle by being called during the Render phase.
这篇关于在ASP.NET中,什么是“ASP”code叫什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文