Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
<asp:ListView ID="ListView1" runat="server">
        <ItemTemplate>

        <div class="col-lg-3 col-md-6 col-sm-6">
                <div class="project-item">

                          <asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("gallery_img") %>' Style="cursor: pointer" onclick="return false LoadDiv(this.src, this);" />

                </div><!--project-item end-->
        </div>
       </ItemTemplate>
</asp:ListView>


What I have tried:

<pre><pre><pre>I made a photo gallery. When I run it with datalist, it works fine. When the photo is clicked, a popup opens. But since it is not a responsive layout, I preferred to use Listview. But this time the popup does not open. Is there something triggering in the background, javascript code or onclick doesn't kick in.
Posted
Comments
Pete O'Hanlon 3-Nov-21 9:54am    
Your onclick is doing return false.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900