为什么FormView在修改密码的时候,更改不了呢。急急急。。。。大侠帮帮忙。。。
<div class="basicinfo">
<asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1">
<EditItemTemplate>
UserPwd:
<asp:TextBox ID="UserPwdTextBox" runat="server" Text='<%# Bind("UserPwd") %>' />
<br />
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"
CommandName="Update" Text="更新" />
<asp:LinkButton ID="UpdateCancelButton" runat="server"
CausesValidation="False" CommandName="Cancel" Text="取消" />
</EditItemTemplate>
<InsertItemTemplate>
UserPwd:
<asp:TextBox ID="UserPwdTextBox" runat="server" Text='<%# Bind("UserPwd") %>' />
<br />
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
CommandName="Insert" Text="插入" />
<asp:LinkButton ID="InsertCancelButton" runat="server"
CausesValidation="False" CommandName="Cancel" Text="取消" />
</InsertItemTemplate>
<ItemTemplate>
UserPwd:
<asp:Label ID="UserPwdLabel" runat="server" Text='<%# Bind("UserPwd") %>' />