0

リストビューに Imagebutton がありますが、コード (aspx.cs) を入力できませんImagebutton1.Click:

<asp:ListView ID="lvFotos" runat="server" 
            GroupItemCount="6" InsertItemPosition="LastItem" align="center">
            <LayoutTemplate>
                <table border="0">
                    <tr ID="groupPlaceholder" runat="server">
                    </tr>
                </table>
            </LayoutTemplate>
            <GroupTemplate>
                <tr>
                    <td ID="itemPlaceholder" runat="server">
                    </td>
                </tr>
            </GroupTemplate>
            <ItemTemplate>
                <td align="center" height="150px" 
                    style="background-color: #ffffff;color: #ffffff; border:none;" width="142px">

                    <asp:ImageButton ID="ImageButton1" ImageUrl="<%# Container.DataItem  %>" runat="server" Width="142" Height="142" />                       

                 </td>
            </ItemTemplate>
            <InsertItemTemplate>

            </InsertItemTemplate>
        </asp:ListView>

どうすればこれを解決できますか?

4

1 に答える 1