Jquery插件在内部嵌套转发器asp.net c#中不正常工作 [英] Jquery plugin not proper working in inner nested repeater asp.net c#

查看:81
本文介绍了Jquery插件在内部嵌套转发器asp.net c#中不正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I used nested repeater for thumbnail image gallery slider using asp.net. So outer nested repeater for display names of the category. and inner repeater for thumnail image gallery slider for different products. so i had used jquery plugin for inner repeater for thumbnail but its not working. the plugin i had used for inner repeater. http://www.aspsnippets.com/Articles/Implement-Carousel-Image-Gallery-in-ASPNet-using-jQuery-jCarousel-Plugin.aspx but simple images are coming like list not thumbnail images slider. somebuddy told me change ul to div . then its working for only one product slider below product slider not working. please suggest me.. out of this problem. following my aspx design code:







<div>
  <asp:Repeater ID="outerRep" runat="server" OnItemDataBound="outerRep_ItemDataBound">
        <ItemTemplate>
                  <asp:Label Font-Size="Large" Font-Bold="true" ID="lblCategoryName" runat="server"

                    Text='<%# Eval("CategoryName") %>' />
                 <ul id="mycarousel" class="jcarousel-skin-tango">
            <asp:Repeater ID="innerRep" runat="server">
                 <ItemTemplate>
                 <li>
                     <asp:Image ID="Image1" runat="server" ImageUrl='<%#Bind("ImageName") %>' Height="70" Width="70"/>
                 </li>

            </asp:Repeater>
       </ul>
            </ItemTemplate>
            </asp:Repeater>
           </div> 

and jquery code







<script type="text/javascript">
    $(function () {
        $('#mycarousel').jcarousel();
         });
</script>







只显示第一个滑块,剩下的就像列表顺序一样。希望我能得到有价值的回复。




only first slider is showing and remaining are just like list order showing. hope i will get valuable reply from this.

推荐答案

(function(){
(function () {


('#mycarousel')。jcarousel ();
});
< / script >
('#mycarousel').jcarousel(); }); </script>







只显示第一个滑块,剩下的就像列表顺序一样。希望我能得到有价值的回复。




only first slider is showing and remaining are just like list order showing. hope i will get valuable reply from this.


它只会显示一个因为在DOM中你必须找到每个ul有id = mycarousel'
It will alwasys show only one because in of DOM you have to find each ul having id=mycarousel '
<pre lang="xml">&lt;script type=&quot;text/javascript&quot;&gt;


这篇关于Jquery插件在内部嵌套转发器asp.net c#中不正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆