日期:2014-05-18 浏览次数:20493 次
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting" DataKeyNames="UserID" OnRowCancelingEdit="GridView1_RowCancelingEdit"> <Columns> <asp:TemplateField HeaderText="用户ID"> <EditItemTemplate> <asp:Label ID="Label5" runat="server" Text='<%# Bind("UserID") %>'></asp:Label> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label6" runat="server" Text='<%# Bind("UserID") %>'></asp:Label> </ItemTemplate> <FooterTemplate> </FooterTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="UserLogin" SortExpression="UserLogin"> <EditItemTemplate> <asp:Label ID="Label3" runat="server" Text='<%# Eval("UserLogin") %>'></asp:Label> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label4" runat="server" Text='<%# Bind("UserLogin") %>'></asp:Label> </ItemTemplate> <FooterTemplate> <asp:TextBox ID="UserLogins" runat="server"></asp:TextBox> </FooterTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="UserPwd" SortExpression="UserPwd"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("UserPwd") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Bind("UserPwd") %>'></asp:Label> </ItemTemplate> <FooterTemplate> <asp:TextBox ID="UserPwds" runat="server"></asp:TextBox> </FooterTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Xzhe" SortExpression="Xzhe"> <EditItemTemplate> <asp:TextBox ID="