Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to use magnifier for each sliding image which is comming from database.
that is in repeater am using it

What I have tried:

HTML
<div class="col-md-9 product-price1">
                <div class="col-md-5 single-top">
                     <%--<a href="images/large/image1.jpg" title="Cartoon Bike"><img src="images/large/image1.jpg" width="300px" height="300px" title="Bike"/></a>--%>
               <asp:Image id="image2" ImageUrl='<%#Eval("Image_Path") %>' Width="300px" Height="300px" data-zoom-image='<%#Eval("Image_Path") %>' runat="server" />
                     <%-- <div>
                          
                        <div id="gallery_01">
                            <asp:Repeater ID="r1" runat="server">
                                <itemtemplate>
                            <a href="#" data-image="<%#Eval("Image_Path") %>" data-zoom-image="<%#Eval("Image_Path") %>">
                                <asp:Image ImageUrl='<%#Eval("Image_Path") %>' runat="server" />
                            </a>
                                    </itemtemplate>
                                
                        </div>
                    </div>--%>
                
                     </div>
                  <script type="text/javascript">
                      $(function () {
                          $("#img1").elevateZoom();
                      });
</script></div>
Posted
Updated 5-Apr-16 17:15pm
v2

1 solution

Looks like you are using elevateZoom plugin. You are providing incorrect image name in the elevateZoom method. Change #img1 to #image2 and test again.

Also it will be good if you have a thumbnail/smaller image rather than using full size image.
 
Share this answer
 

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