经常在写ASP.NET 或是看相关技术文章时,会遇上如下一些相似数据绑定符号。今看到了简洁解释,便摘录如下,以备忘。

 

<% %> is simply short for <script runat="server"> </script> aka code render blocks.

<%# %> are binding expressions (plus the above).

<%= %> is the above + a Response.Write().

<%: %> is the above + a Response.Write() wrapped in Html.Encode (new in .NET 4.0).

<%$ %> is an ASP.NET expression, used to bind configuration or resource file data during runtime.

 

Refer URL:
http://stackoverflow.com/questions/5833278/meaning-of-the-various-symbols-in-aspx-page-of-asp-net

 


 

相关文章:

  • 2021-11-30
  • 2022-03-13
  • 2021-08-08
  • 2022-02-08
  • 2022-01-12
  • 2022-02-18
  • 2021-10-06
  • 2021-11-16
猜你喜欢
  • 2021-07-30
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-06-20
相关资源
相似解决方案