⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userrecord.aspx

📁 酒店管理系统项目需求说明 第一部分 引言 1 1.1编写目的 1 1.2背景 1 第二部分 任务概述 2 3.1实现目标 2 3.1.1客房类型模块: 2 3.1.2客房信息
💻 ASPX
字号:
<%@ Page Language="C#" Debug="true" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="UserRecord.aspx.cs" Inherits="UserRecord" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


    <style type="text/css">
        .style27
        {
            width: 239px;
        }
        .style28
        {
            width: 79px;
        }
        .style30
        {
            width: 101px;
        }
        .style31
        {
            width: 177px;
        }
        .style32
        {
            width: 144px;
        }
        .style33
        {
            width: 149px;
        }
    </style>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <asp:MultiView ID="MultiView5" runat="server">
            <asp:View ID="View9" runat="server">
                <table align="center">
                    <tr>
                        <td align="right" class="style32">
                            <asp:DropDownList ID="ddl" runat="server">
                                <asp:ListItem>--查询方式--</asp:ListItem>
                                <asp:ListItem>用户ID</asp:ListItem>
                                <asp:ListItem>姓名</asp:ListItem>
                            </asp:DropDownList>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToValidate="ddl" ErrorMessage="*" Operator="NotEqual" 
                        ValueToCompare="--查询方式--"></asp:CompareValidator>
                        </td>
                        <td align="left" class="style31">
                            <asp:TextBox ID="txtfilter" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtfilter" ErrorMessage="*"></asp:RequiredFieldValidator>
                        </td>
                        <td align="center" class="style31">
                            <asp:LinkButton ID="LinkButton11" runat="server" ForeColor="Blue" 
                        onclick="LinkButton11_Click">查询数据</asp:LinkButton>
                        </td>
                        <td align="center" class="style30">
                            <asp:LinkButton ID="LinkButton12" runat="server" ForeColor="Blue" 
                        onclick="LinkButton12_Click" CausesValidation="False">查询所有</asp:LinkButton>
                        </td>
                        <td align="center">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="left" class="style28" colspan="3">
                            &nbsp;</td>
                        <td align="center" colspan="2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:MultiView ID="MultiView4" runat="server">
                                <asp:View ID="View7" runat="server">
                                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="UserID" 
                                ForeColor="#333333" GridLines="None" Height="16px" 
                                onpageindexchanging="GridView1_PageIndexChanging" 
                                onrowdatabound="GridView1_RowDataBound" 
                                onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="5" 
                                Width="573px">
                                        <PagerSettings FirstPageText="1" LastPageText="&lt;&lt;" 
                                    NextPageText="&amp;gt;&gt;&gt;" PageButtonCount="5" />
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <RowStyle BackColor="#EFF3FB" />
                                        <Columns>
                                            <asp:BoundField DataField="UserID" HeaderText="用户编号" Visible="False" />
                                            <asp:BoundField DataField="UserName" HeaderText="用户ID" />
                                            <asp:BoundField DataField="Name" HeaderText="姓名" />
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                CommandName="Select" ForeColor="Blue">详细</asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                        <EmptyDataTemplate>
                                            <asp:Label ID="Label1" runat="server" Text="没有查询到数据!"></asp:Label>
                                        </EmptyDataTemplate>
                                        <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:View>
                                <br />
                                <asp:View ID="View8" runat="server">
                                    <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="UserID" 
                                ForeColor="#333333" GridLines="None" Height="69px" 
                                onpageindexchanging="GridView2_PageIndexChanging" 
                                onrowdatabound="GridView2_RowDataBound" 
                                onselectedindexchanged="GridView2_SelectedIndexChanged" PageSize="5" 
                                Width="573px">
                                        <PagerSettings FirstPageText="1" LastPageText="&lt;&lt;" 
                                    NextPageText="&amp;gt;&gt;&gt;" PageButtonCount="5" />
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <RowStyle BackColor="#EFF3FB" />
                                        <Columns>
                                            <asp:BoundField DataField="UserID" HeaderText="用户编号" Visible="False" />
                                            <asp:BoundField DataField="UserName" HeaderText="用户ID" />
                                            <asp:BoundField DataField="Name" HeaderText="姓名" />
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LinkButton4" runat="server" CausesValidation="False" 
                                                CommandName="Select" ForeColor="Blue">详细</asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                        <EmptyDataTemplate>
                                            <asp:Label ID="Label2" runat="server" Text="没有查询到数据!"></asp:Label>
                                        </EmptyDataTemplate>
                                        <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:View>
                            </asp:MultiView>
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View ID="View6" runat="server">
                <table align="center" class="style23">
                    <tr>
                        <td align="right" class="style27">
                            用 户 ID:</td>
                        <td align="left" class="style33">
                            <asp:Label ID="lblusername" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td align="left" class="style25">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="right" class="style27">
                            姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 名:</td>
                        <td align="left" class="style33">
                            <asp:Label ID="lblname" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td align="left" class="style25">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="right" class="style27">
                            身&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 份:</td>
                        <td align="left" class="style33">
                            <asp:Label ID="lblstatus" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td align="left" class="style25">
                            <asp:DropDownList ID="ddl2" runat="server" Height="22px" Width="80px">
                                <asp:ListItem>普通用户</asp:ListItem>
                                <asp:ListItem>管理员</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="style27">
                            地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 址:</td>
                        <td align="left" class="style33">
                            <asp:Label ID="lbladdress" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td align="left" class="style25">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="right" class="style27">
                            电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 话:</td>
                        <td align="left" class="style33">
                            <asp:Label ID="lblphone" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td align="left" class="style25">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="right" class="style27">
                            E m a i l :</td>
                        <td align="left" class="style33">
                            <asp:Label ID="lblemail" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td align="left" class="style25">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <asp:LinkButton ID="LinkButton5" runat="server" onclick="LinkButton5_Click" 
                        ForeColor="Blue">确定更改</asp:LinkButton>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="LinkButton6" runat="server" onclick="LinkButton6_Click" 
                        ForeColor="Blue">返回</asp:LinkButton>
                            &nbsp;&nbsp;
                        </td>
                        <td align="center">
                            <asp:LinkButton ID="LinkButton7" runat="server" ForeColor="Blue" 
                        onclick="LinkButton7_Click" onclientclick="return confirm('确定删除该用户吗?');">删除该用户</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="3">
                            <asp:Label ID="Label7" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                            <asp:Timer ID="Timer1" runat="server" Interval="3000" ontick="Timer1_Tick">
                            </asp:Timer>
                            <asp:Label ID="lbluserid" runat="server" Text="Label" Visible="False"></asp:Label>
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -