我好像丢了什么东西。但自从.Net 4.0问世以来,我就一直看到 <%: %> ASP.NET的语法。好像和 <%= %> <%:%> <%:%> 语法do?它是在.Net 4.0还是3.5中引入的?有人能启发我吗?
<%: %>
<%= %>
<%:%>
编辑: 请提供参考或示例
我相信,<%:%>是自动编码
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编码。
:
a nice post 详细描述。
请参阅以下链接
Are <%: and <%= the same thing as embbed code (expression) blocks