ASP.NET编辑数据列表中的每条记录
我目前有一个ASP.NET编辑数据列表中的每条记录,asp.net,vb.net,Asp.net,Vb.net,我目前有一个DataList控件,定义了ItemTemplate和EditItemTemplate <asp:DataList ID="UserMatrixDataList" runat="server" RepeatColumns = "1" CellSpacing = "6" RepeatLayout="Table" BorderWidth="5"> <ItemTemplate> <table class="table">
DataList
控件,定义了ItemTemplate
和EditItemTemplate
<asp:DataList ID="UserMatrixDataList" runat="server" RepeatColumns = "1" CellSpacing = "6" RepeatLayout="Table" BorderWidth="5">
<ItemTemplate>
<table class="table">
<col width="130">
<col width="800">
<tr>
<td >
<strong>Level</strong>
</td>
<td>
<asp:Label ID="lblLevel" runat="server" Text='<%# Eval("Level")%>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
<EditItemTemplate>
<table class="table">
col width="130">
<col width="800">
<tr>
<td >
<strong>Level</strong>
</td>
<td>
<asp:Textbox ID="txtLevel" runat="server" Text='<%# Eval("Level")%>'></asp:Textbox>
</td>
</tr>
</table>
</EditItemTemplate>
</asp:DataList>
级别
col width=“130”>
级别
在执行Databind()
之后,我可以问一下如何将数据列表中的所有记录设置为编辑模式吗