日期:2014-05-17  浏览次数:20466 次

repeater中有数据为什么items.count=0呢
如下所示:
C# code

<dx:ASPxPageControl ID="ASPxPageControl1" runat="server"〉
<dx:TabPage Text="订货明细">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                <asp:Repeater ID="rptSfIdtList" runat="server" >
                <HeaderTemplate>
                    <table width="100%" id="prodTb">
                        <tr align="left">
                            <th>商品编码</th>
                            <th>商品名称</th>
                            <th>颜色</th>
                            <th>版型</th>
                            <th>规格</th>
                            <th>订货数量</th>
                            <th>吊牌价</th>
                            <th>现价</th>
                            <th>折率</th>
                            <th>金额</th>
                            <th>备注</th>
                            <th>已配数量</th>
                            <th>已发数量</th>
                        </tr>
                </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center"><a href='Detail.aspx?sn=<%#RetStr(Eval("PRODNUM")) %>'><%#Eval("PRODNUM")%></a></td>
                            <td align="center"><a href="Detail.aspx?sn=<%#RetStr(Eval("PRODNUM")) %>"><%#Eval("PRODNAME")%></a></td>
                            <td align="center"><%#Eval("COLORNAME")%><asp:HiddenField ID="HFID" runat="server" Value='<%#Eval("ID") %>' /></td>
                            <td align="center"><%#Eval("EDTNCLSNAME")%></td>
                            <td align="center"><%#Eval("SPECNAME")%></td>
                            <td align="center"><asp:TextBox ID="txt_order_qty" runat="server" Text='<%#Eval("ORDERQTY")%>' onchange='updShopQuantity(this)' CssClass="txt"/><input type="hidden" id="hd<%# Container.ItemIndex%>" value="<%# Container.ItemIndex%>" /></td>
                            <td align="center"><input type="hidden" id="tdp_<%# Container.ItemIndex %>" /><asp:Label ID="lbl_ature_price" runat="server" Text='<%#Eval("UNITPRICE")%>'></asp:Label></td>
                            <td align="center"><%#Eval("ATUREPRICE")%></td>
                            <td align="center"><%#Eval("DISCDATE")%></td>
                            <td align="center"><input type="hidden" id="tda_<%#Container.ItemIndex %>" /><asp:Label ID="lbl_prodJine" runat="server" Text='<%#Eval("AMOUNT")%>'/></td>
                            <td align="center"><%#Eval("REMARK")%></td>
                            <td align="center"><%#Eval("ALLOC_QTY")%></td>
                            <td align="center"><%#Eval("ACT_QTY")%></td>
                        </tr>