Asp.net服务器端code座的解释 [英] Asp.net server-side code block explanations
本文介绍了Asp.net服务器端code座的解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我见过很多不同类型ASPX服务器端code块,但从来没有什么手段每一个简单的键。我知道其中的一些,但它真的很难搜索在搜索引擎中的符号!你能帮帮我吗?
<%%GT;
&所述;% - - %GT;
<%@%GT;
&所述;%=%GT;
&所述;%:%GT;
<%$%>
<%#%>
解决方案
-
<%%GT;
- 服务器端code -
<% - - %GT;
- 服务器端注释 -
<%@%GT;
- 页面指令 -
<%=%GT;
- 显示值 -
<%:%GT;
- <一个href=\"http://weblogs.asp.net/scottgu/archive/2010/04/06/new-lt-gt-syntax-for-html-encoding-output-in-asp-net-4-and-asp-net-mvc-2.aspx\">HTML恩code -
&LT;%$%&GT;
- 数据源防爆pression -
&LT;%#%&GT;
- 结合前pression
I've seen many different types of server side code blocks in aspx but never a simple key for what each means. I know some of these but it's really hard to search for symbols in a search engine! Can you help me out?
<% %>
<%-- --%>
<%@ %>
<%= %>
<%: %>
<%$ %>
<%# %>
解决方案
<% %>
- Server side code<%-- --%>
- Server Side Comment<%@ %>
- Page Directive<%= %>
- Display value<%: %>
- HTML Encode<%$ %>
- Datasource Expression<%# %>
- Binding Expression
You can find a bit more information about some of them at "ASP.NET Page Syntax".
这篇关于Asp.net服务器端code座的解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文