Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ASP.NET 4.5 引入了强类型数据控件。
据我所知,有两个选项如何访问数据项
<%# Item %>
和
<%# BindItem %>
不过我不太明白,这两者之间到底有什么区别?这只是命名的问题吗?它们可以互换使用吗?
情况是这样的:
Item: 用于单向绑定表达式。
Item
BindItem: 用于双向数据绑定表达式。
BindItem