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

关于标识列求助
在repeater中的标识列,并不现实成数字,直接在页面显示,报错
<asp:Repeater ID="rep1" runat="server" OnItemDataBound="rep1_ItemDataBound">
            <ItemTemplate>
            <tr>
                <td>                   
                        <table id='<%#"table"+Container.ItemIndex %>'  runat="server" width="152" border="0" cellspacing="0" cellpadding="0"  >
                            <tr style="cursor: pointer;" onclick='showsubmenu(<%#Container.ItemIndex %>)'>
                                <td width="120" height="24" class="white12" style="padding-left: 10px;">
                                  <%#Eval("NewsTypename")%>
                                </td>
                                <td width="32" align="left">
                                    <img src="images/sj_1.gif" width="9" height="5" border="0" />
                                </td>
                            </tr>
                        </table>
                        <div id="submenu<%#Container.ItemIndex %>" style="padding: 6px 0px 6px 0px; margin-bottom: 10px; background-image: url(images/left_qh_bg_2.jpg);       display: none;">
                            <table width="152" border="0" cellspacing="0" cellpadding="0">
                                <asp:Repeater ID="rep2" runat="