我一直在asp.net C#中练习编码,我想我在这里迷路了。我想显示的是桌子内的物品。标题可以,但是当我尝试在体内放置东西时,不会显示任何输出。
<div class="panel-body">
<div class="panel-body table-responsive">
<table class="table">
<thead>
<tr>
<th>
</th>
<th class="text-center">TEXT</th>
<th class="text-center">TEXT</th>
<th class="text-center">TEXT</th>
<th class="text-center">TEXT</th>
</tr>
</thead>
<tbody>
<asp:Repeater runat="server" ID="rptrTest">
<ItemTemplate>
<tr>
<td>
<asp:Label runat="server" ID="lblTest0" Visible="false" Text='<%# Container.ItemIndex + 1 %>'></asp:Label>
</td>
<td>
<asp:LinkButton runat="server" ID="btnAddRow" CssClass="actionbtnstyle fa fa-plus-square" CausesValidation="false" OnClick="btnAddRow_Click" Style="font-size: 20px;"></asp:LinkButton>
</td>
<td>
<asp:LinkButton runat="server" ID="btnDelete" CssClass="actionbtnstyle fa fa-minus-square" CausesValidation="false" OnClick="btnDelete_Click" Style="font-size: 20px;"></asp:LinkButton>
</td>
<asp:TextBox runat="server" ID="txtInput1" Text="default" CssClass="form-control" Visible="true"></asp:TextBox>
<td>
<asp:TextBox runat="server" ID="txtInput2" Text="default" CssClass="form-control" Visible="true"></asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txtInput3" Text="default" CssClass="form-control" Visible="true"></asp:TextBox>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>
</div>
</div>
</div>