- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经在 asp.net 中使用转发器控件有一段时间了..并且时不时地我总是忘记在 < %# DataBinder.Eval(Container.DataItem, "NAME"内添加 '#' )%>
所以我想知道这是什么意思?
最佳答案
这表明您是binding an expression正如您演示的 eval 或 bind 一样。
数据绑定(bind)语法
Data-binding expressions are contained within <%# and %> delimiters and use the Eval and Bind functions. The Eval function is used to define one-way (read-only) binding. The Bind function is used for two-way (updatable) binding. In addition to calling Eval and Bind methods to perform data binding in a data-binding expression, you can call any publicly scoped code within the <%# and %> delimiters to execute that code and return a value during page processing.
关于ASP.NET : What does the '#' starting a <% %> mean?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1496938/
我是一名优秀的程序员,十分优秀!