没报错,但修改不了datelist绑定在TextBox的值啊,大家帮我看看是什么问题
这个小小问题,弄了我半天弄不出来,晕了。大家帮帮忙
前台
<asp:DataList ID="DataList1" runat="server" Width="500px"
onitemcommand="DataList1_ItemCommand" >
<ItemTemplate>
<table cellpadding="0" cellspacing="0" class="style2">
<tr>
<td>
<asp:Label ID="lbId" runat="server" Text='<%#Eval("id") %>' Visible="false"></asp:Label>
<%# Eval("title") %>
</td>
</tr>
<tr>
<td>
<%# Eval("time") %>
</td>
</tr>
<tr>
<td>
<%# Eval("text") %></td>
</tr>
<tr>
<td>
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit">【修改】</asp:LinkButton>
<asp:LinkButton ID="LinkButton2" runat="server" CommandName="Delete">【删除】</asp:LinkButton>
</tr>
</table>
</ItemTemplate>
<EditItemTemplate>
<table class="style2">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text='<%#Eval("id") %>'></asp:Label>
<asp:Label ID="Label3" runat="server" Text="标题:"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Text='<%#Eval("title") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="内容" ></asp:Label>
<asp:TextBox ID="TextBox2" runat="server" Height="150px" TextMode="MultiLine" Text='<%#Eval("text") %>'
Width="100%"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="LinkButton4" runat="server" CommandName="Update">确认修改</asp:LinkButton>
<asp:LinkButton ID="LinkButton3" runat="server" CommandName="Cancel">取消</asp:LinkButton>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</EditItemTemplate>
</asp:Da