Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.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# C将转盘控件放置在中继器内_C#_Jquery - Fatal编程技术网

C# C将转盘控件放置在中继器内

C# C将转盘控件放置在中继器内,c#,jquery,C#,Jquery,我使用以下c代码将转盘控件放置在中继器中: <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <table cellpadding="0" cellspacing="0" class="mycarous

我使用以下c代码将转盘控件放置在中继器中:

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:Repeater ID="Repeater1" runat="server">
    <ItemTemplate>
    <table cellpadding="0" cellspacing="0" class="mycarousel">

            <tr>
                <td valign="top">

                    <a id="prev" class="myprev" href="#">
                    </a>
                </td>
                <td>

                    <div class="carousel_list">

                        <ul class="foo1" id="foo1">
                            <li>
                                <img id="img1" src="<%#Eval("IMG_SRC")%>" />    
                                </a>
                            </li>

                        </ul>

                        <div class="clearfix">
                        </div>

                    </div>

                </td>
                <td valign="top">
                    <a id="next" class="mynext" href="#">
                    </a>
                </td>
            </tr>
        </table>
   </ItemTemplate>  
    </asp:Repeater>
</asp:Content>
结果如下:

但我想要/希望得到的是:

这意味着将所有以A开头的名称放入旋转木马控件,将B放入其他旋转木马控件…等等


请任何人帮我一下。

我看你需要两个转发器控制器,一个在另一个里面。
然后,您应该准备分层数据结构并将其绑定。

下面是一个如何使用嵌套中继器的示例是的,这就是我所想的:但是我应该将第二个中继器放在哪里,以及如何将其绑定到筛选表。
protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            FillOrder();
        }       
    }

    protected void FillOrder()
    {

        sqlcon.Open();
        sqlcmd = new SqlCommand("select * from Table_1 Order By name", sqlcon);
        da = new SqlDataAdapter(sqlcmd);
        da.Fill(dt);
        if (dt.Rows.Count > 0)
        {
            Repeater1.DataSource = dt;
            Repeater1.DataBind();
        }
        sqlcon.Close();

    }