📄 userreception.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="UserReception.aspx.cs" Inherits="UserReception" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.style21
{
width: 100%;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<br />
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<table class="style21">
<tr>
<td align="left">
<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>
<asp:TextBox ID="txtfilter" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtfilter" ErrorMessage="*"></asp:RequiredFieldValidator>
</td>
<td align="left">
<asp:LinkButton ID="LinkButton11" runat="server" ForeColor="Blue"
onclick="LinkButton11_Click">查询数据</asp:LinkButton>
</td>
<td align="center">
<asp:LinkButton ID="LinkButton12" runat="server" ForeColor="Blue"
onclick="LinkButton12_Click" CausesValidation="False">查询所有</asp:LinkButton>
</td>
</tr>
<tr>
<td align="left" colspan="2">
</td>
<td align="center">
</td>
</tr>
<tr>
<td colspan="3">
<asp:MultiView ID="MultiView4" runat="server">
<asp:View ID="View7" runat="server">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" DataKeyNames="RoomID" Height="69px" PageSize="5"
Width="573px" onpageindexchanging="GridView1_PageIndexChanging"
onselectedindexchanged="GridView1_SelectedIndexChanged" CellPadding="4"
ForeColor="#333333" GridLines="None"
onrowdatabound="GridView1_RowDataBound">
<PagerSettings FirstPageText="1" LastPageText="<<"
NextPageText="&gt;>>" PageButtonCount="5" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<Columns>
<asp:BoundField DataField="UserName" HeaderText="用户ID" />
<asp:BoundField DataField="Name" HeaderText="姓名" />
<asp:BoundField DataField="Number" HeaderText="房间号" />
<asp:BoundField DataField="TypeName" HeaderText="房间类型" />
<asp:BoundField DataField="State" HeaderText="房间状态" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select"
CausesValidation="False" ToolTip="将“已预订”的房间号修改为“入住状态”"
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>
<asp:View ID="View8" runat="server">
<asp:GridView ID="GridView2" runat="server" AllowPaging="True"
AutoGenerateColumns="False" DataKeyNames="RoomID" Height="69px"
onpageindexchanging="GridView2_PageIndexChanging"
onselectedindexchanged="GridView2_SelectedIndexChanged" PageSize="5"
Width="573px" CellPadding="4" ForeColor="#333333" GridLines="None"
onrowdatabound="GridView2_RowDataBound">
<PagerSettings FirstPageText="1" LastPageText="<<"
NextPageText="&gt;>>" PageButtonCount="5" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<Columns>
<asp:BoundField DataField="UserName" HeaderText="用户ID" />
<asp:BoundField DataField="Name" HeaderText="姓名" />
<asp:BoundField DataField="Number" HeaderText="房间号" />
<asp:BoundField DataField="TypeName" HeaderText="房间类型" />
<asp:BoundField DataField="State" HeaderText="房间状态" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False"
CommandName="Select" ToolTip="将“已预订”的房间号修改为“入住状态”" 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>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -