ItemDataBound 'e.item.dataitem(“key”)' with ListView Control [duplicate]

橙三吉。 提交于 2019-12-07 16:28:40

问题


With the ASP.NET Repeater control, I am used to being able to access my data item values in the ItemDataBound Event Handler by doing:

e.item.dataitem("column_name")

However, it seems with the ListView control this is not possible. How can I access the data item values?


回答1:


Get data being bound to ListView on DataBound event



来源:https://stackoverflow.com/questions/3195557/itemdatabound-e-item-dataitemkey-with-listview-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!