C# ListView没有重载_数据绑定匹配委托System.EventHandler
我得到了臭名昭著的黄色屏幕上C# ListView没有重载_数据绑定匹配委托System.EventHandler,c#,asp.net,webforms,C#,Asp.net,Webforms,我得到了臭名昭著的黄色屏幕上 <asp:ListView id=... runat="server" OnitemCommand=... OnDataBound="MeasuresSummaryTiles_DataBound"> 知道为什么吗?您正在查找的事件称为ItemDataBound,而不是OnDataBound 您要查找的事件称为ItemDataBound,而不是OnDataBound 像那样使用 <asp:ListView OnItemDataBound=
<asp:ListView id=... runat="server" OnitemCommand=... OnDataBound="MeasuresSummaryTiles_DataBound">
知道为什么吗?您正在查找的事件称为
ItemDataBound
,而不是OnDataBound
您要查找的事件称为
ItemDataBound
,而不是OnDataBound
像那样使用
<asp:ListView OnItemDataBound="EventHandler" />
像那样使用
<asp:ListView OnItemDataBound="EventHandler" />
我明白了,我正在将GridView转换为ListView,这就是onDataBound的来源:)。我明白了,我正在将GridView转换为ListView,这就是onDataBound的来源:)。