我一直在asp.net中使用转发器控件已经有一段时间了……我时不时地忘记在<内部添加'#'了. %#DataBinder.Eval(Container.DataItem,“NAME”)%>
所以我想知道它是什么意思?
解决方法
它表示您是
binding an expression,因此您演示了eval或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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。