admin/AdminUserInfo.aspx

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeFile="AdminUserInfo.aspx.cs" Inherits="admin_AdminUserInfo" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
          <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
          AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
          DataKeyNames="UserName" DataSourceID="SqlDataSource1" ForeColor="#333333" 
          GridLines="None" Height="18px" PageSize="8" Width="787px">
          <PagerSettings FirstPageText="首页" LastPageText="尾页" 
              Mode="NextPreviousFirstLast" NextPageText="下一页" PreviousPageText="上一页" />
          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
          <RowStyle BackColor="#EFF3FB" />
          <Columns>
              <asp:CommandField ButtonType="Button" HeaderText="编辑" ShowDeleteButton="True" 
                  ShowEditButton="True">
                  <ControlStyle Width="50px" />
              </asp:CommandField>
              <asp:BoundField DataField="UserName" HeaderText="用户名" ReadOnly="True" 
                  SortExpression="UserName">
                  <ControlStyle Width="60px" />
              </asp:BoundField>
              <asp:BoundField DataField="Name" HeaderText="真实姓名" SortExpression="Name">
                  <ControlStyle Width="60px" />
              </asp:BoundField>
              <asp:BoundField DataField="PassWord" HeaderText="密码" SortExpression="PassWord">
                  <ControlStyle Width="70px" />
              </asp:BoundField>
              <asp:BoundField DataField="Email" HeaderText="邮箱" SortExpression="Email">
                  <ControlStyle Width="100px" />
              </asp:BoundField>
              <asp:BoundField DataField="Address" HeaderText="地址" SortExpression="Address">
                  <ControlStyle Width="130px" />
              </asp:BoundField>
              <asp:BoundField DataField="Datetime" HeaderText="注册时间" 
                  SortExpression="Datetime">
                  <ControlStyle Width="130px" />
              </asp:BoundField>
          </Columns>
          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
          <EditRowStyle BackColor="#2461BF" />
          <AlternatingRowStyle BackColor="White" />
      </asp:GridView>
      <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
          ConnectionString="<%$ ConnectionStrings:BookManagerConnectionString %>" 
          DeleteCommand="DELETE FROM [UserInfo] WHERE [UserName] = @UserName" 
          InsertCommand="INSERT INTO [UserInfo] ([UserName], [Name], [PassWord],  [Email], [Address], [Datetime]) VALUES (@UserName, @Name, @PassWord,  @Email, @Address, @Datetime)" 
          SelectCommand="SELECT * FROM [UserInfo]" 
          UpdateCommand="UPDATE [UserInfo] SET [Name] = @Name, [PassWord] = @PassWord, [Email] = @Email, [Address] = @Address, [Datetime] = @Datetime WHERE [UserName] = @UserName">
          <DeleteParameters>
              <asp:Parameter Name="UserName" Type="String" />
          </DeleteParameters>
          <UpdateParameters>
              <asp:Parameter Name="Name" Type="String" />
              <asp:Parameter Name="PassWord" Type="String" />
              <asp:Parameter Name="Email" Type="String" />
              <asp:Parameter Name="Address" Type="String" />
              <asp:Parameter Name="Datetime" Type="DateTime" />
              <asp:Parameter Name="UserName" Type="String" />
          </UpdateParameters>
          <InsertParameters>
后面还有 9 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。