web/WebUserControl5.ascx
(完整代码) 2KB<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl5.ascx.cs" Inherits="web_WebUserControl5" %>
<p>
客房类型管理:</p>
<p>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="查询所有类型" />
<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="添加新的类型" />
</p>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
Width="435px"
CellPadding="4" Height="200px" ForeColor="#333333" GridLines="None"
PageSize="5" AutoGenerateColumns="False" AllowSorting="True"
DataKeyNames="类型号" DataSourceID="SqlDataSource1" onrowdeleting="delete"
>
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="类型号" HeaderText="类型号" ReadOnly="True"
SortExpression="类型号" />
<asp:BoundField DataField="类型名称" HeaderText="类型名称" SortExpression="类型名称" />
<asp:BoundField DataField="面积" HeaderText="面积" SortExpression="面积" />
<asp:BoundField DataField="床位数" HeaderText="床位数" SortExpression="床位数" />
<asp:BoundField DataField="价格" HeaderText="价格" SortExpression="价格" />
<asp:BoundField DataField="空调数" HeaderText="空调数" SortExpression="空调数" />
<asp:BoundField DataField="电视数" HeaderText="电视数" SortExpression="电视数" />
</Columns>
<FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<PagerStyle ForeColor="#333333" HorizontalAlign="Center" BackColor="#FFCC66" />
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<SortedAscendingCellStyle BackColor="#FDF5AC" />
<SortedAscendingHeaderStyle BackColor="#4D0000" />
<SortedDescendingCellStyle BackColor="#FCF6C0" />
<SortedDescendingHeaderStyle BackColor="#820000" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnStr %>"
SelectCommand="SELECT RcategoryId AS 类型号, Name AS 类型名称, Area AS 面积, BedNum AS 床位数, Price AS 价格, Aircondition AS 空调数, TV AS 电视数 FROM RoomCategory">
</asp:SqlDataSource>
<p>
</p>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。