Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ListView没有重载_数据绑定匹配委托System.EventHandler_C#_Asp.net_Webforms - Fatal编程技术网

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的来源:)。