UserMaser.aspx

(开头部分) 5KB

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

<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="UserMaser.aspx.cs" Inherits="MyPetShop.UserMaser" %>
<%@ Register src="userControl/menu1.ascx" tagname="menu1" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <p style="font-family: 方正姚体; font-size: large">
        用户信息管理</p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="UserId" 
        DataSourceID="SqlDataSource1" Font-Size="Medium" Height="241px" 
        Width="639px">
        <Columns>
            <asp:BoundField DataField="UserId" HeaderText="用户ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="UserId" />
            <asp:BoundField DataField="UserName" HeaderText="用户姓名" 
                SortExpression="UserName" />
            <asp:BoundField DataField="UserPwd" HeaderText="用户密码" 
                SortExpression="UserPwd" />
            <asp:BoundField DataField="UserQes" HeaderText="密保问题" 
                SortExpression="UserQes" />
            <asp:BoundField DataField="UserAns" HeaderText="密保答案" 
                SortExpression="UserAns" />
            <asp:BoundField DataField="UserEmail" HeaderText="用户邮箱" 
                SortExpression="UserEmail" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConflictDetection="CompareAllValues" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        DeleteCommand="DELETE FROM [UserInf] WHERE [UserId] = @original_UserId AND (([UserName] = @original_UserName) OR ([UserName] IS NULL AND @original_UserName IS NULL)) AND (([UserPwd] = @original_UserPwd) OR ([UserPwd] IS NULL AND @original_UserPwd IS NULL)) AND (([UserQes] = @original_UserQes) OR ([UserQes] IS NULL AND @original_UserQes IS NULL)) AND (([UserAns] = @original_UserAns) OR ([UserAns] IS NULL AND @original_UserAns IS NULL)) AND (([UserEmail] = @original_UserEmail) OR ([UserEmail] IS NULL AND @original_UserEmail IS NULL))" 
        InsertCommand="INSERT INTO [UserInf] ([UserName], [UserPwd], [UserQes], [UserAns], [UserEmail]) VALUES (@UserName, @UserPwd, @UserQes, @UserAns, @UserEmail)" 
        OldValuesParameterFormatString="original_{0}" 
        SelectCommand="SELECT * FROM [UserInf]" 
        UpdateCommand="UPDATE [UserInf] SET [UserName] = @UserName, [UserPwd] = @UserPwd, [UserQes] = @UserQes, [UserAns] = @UserAns, [UserEmail] = @UserEmail WHERE [UserId] = @original_UserId AND (([UserName] = @original_UserName) OR ([UserName] IS NULL AND @original_UserName IS NULL)) AND (([UserPwd] = @original_UserPwd) OR ([UserPwd] IS NULL AND @original_UserPwd IS NULL)) AND (([UserQes] = @original_UserQes) OR ([UserQes] IS NULL AND @original_UserQes IS NULL)) AND (([UserAns] = @original_UserAns) OR ([UserAns] IS NULL AND @original_UserAns IS NULL)) AND (([UserEmail] = @original_UserEmail) OR ([UserEmail] IS NULL AND @original_UserEmail IS NULL))">
        <DeleteParameters>
            <asp:Parameter Name="original_UserId" Type="Int32" />
            <asp:Parameter Name="original_UserName" Type="String" />
            <asp:Parameter Name="original_UserPwd" Type="String" />
            <asp:Parameter Name="original_UserQes" Type="String" />
            <asp:Parameter Name="original_UserAns" Type="String" />
            <asp:Parameter Name="original_UserEmail" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="UserName" Type="String" />
            <asp:Parameter Name="UserPwd" Type="String" />
            <asp:Parameter Name="UserQes" Type="String" />
            <asp:Parameter Name="UserAns" Type="String" />
            <asp:Parameter Name="UserEmail" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="UserName" Type="String" />
            <asp:Parameter Name="UserPwd" Type="String" />
            <asp:Parameter Name="UserQes" Type="String" />
            <asp:Parameter Name="UserAns" Type="String" />
            <asp:Parameter Name="UserEmail" Type="String" />
            <asp:Parameter Name="original_UserId" Type="Int32" />
            <asp:Parameter Name="original_UserName" Type="String" />
后面还有 13 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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