web/WebUserControl6.ascx
(完整代码) 3KB<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl6.ascx.cs" Inherits="web_WebUserControl6" %>
<div style=" height:320px">
<p>
客房信息管理:</p>
<p>
<asp:Button ID="Button1" runat="server" onclick="Button1_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"
onselectedindexchanged="GridView1_SelectedIndexChanged" ShowHeaderWhenEmpty="True"
>
<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:TemplateField ShowHeader="False" HeaderText="修改" FooterText="修改">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" OnCommand="bhy"
CommandName="" CommandArgument='<%#Eval("房间号") +"|"+Eval("房间类型号")+"|"+Eval("位置")+"|"+Eval("备注")%>' Text="修改">></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="添加" ShowHeader="False" FooterText="添加">
<ItemTemplate>
<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" OnCommand="bhy1"
CommandName="" CommandArgument='<%#Eval("房间号") +"|"+Eval("房间类型号")+"|"+Eval("位置")+"|"+Eval("备注")%>' Text="添加">></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</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 RoomId AS 房间号, RcategoryId AS 房间类型号, Rposition AS 位置, Description AS 备注 FROM RoomsInfo">
</asp:SqlDataSource>
</div>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。