开发者

Asp.net server-side code block explanations

I've seen many different types o开发者_StackOverflow社区f 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".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜