Web/Admin/HousesList.aspx

(完整代码) 3KB

<%@ Page Title="房源列表" Language="C#" MasterPageFile="~/Admin/BackMasterPage.master" AutoEventWireup="true" CodeFile="HousesList.aspx.cs" Inherits="Admin_HousesList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="left">
    <br />
&nbsp;
<asp:LinkButton ID="lbtnAll" runat="server" onclick="lbtnAll_Click">全部房源</asp:LinkButton>
            (<asp:Label ID="lblAll" runat="server" Font-Bold="True"></asp:Label>
            )套&nbsp; 
            <asp:LinkButton ID="lbtnOnline" runat="server" onclick="lbtnOnline_Click">已上线</asp:LinkButton>
            (<asp:Label ID="lblOnline" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
            )套&nbsp; 
            <asp:LinkButton ID="lbtnOffline" runat="server" onclick="lbtnOffline_Click">已下线</asp:LinkButton>
            (<asp:Label ID="lblOffline" runat="server" Font-Bold="True" ForeColor="#CC6699"></asp:Label>
            )套<br />&nbsp; <asp:Label ID="lblNoHouses" runat="server" ForeColor="Red"></asp:Label>
            <br />
            <asp:GridView ID="gvHouses" runat="server" AllowPaging="True" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" 
            Width="100%" onpageindexchanging="gvHouses_PageIndexChanging" DataKeyNames="ID" 
            PageSize="5" onrowdatabound="gvHouses_RowDataBound" 
        EnableModelValidation="True">
            <PagerSettings Mode="NumericFirstLast" PageButtonCount="5" />
            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" Height="20px" />
            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" Height="20px" />
            <Columns>
                <asp:TemplateField HeaderText="房源编号">
                    <ItemTemplate>                
                    <a href="HouseDetail.aspx?HouseID=<%# Eval("ID") %>">
                            <asp:Label ID="lblID" runat="server" ForeColor="Red" Text='<%# Eval("ID") %>'></asp:Label>
                    </a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Area" HeaderText="面积" SortExpression="Area" ReadOnly="true">
                </asp:BoundField>
                <asp:BoundField DataField="Community" HeaderText="小区" SortExpression="Community" ReadOnly="true">
                </asp:BoundField>
                <asp:BoundField DataField="Status" HeaderText="状态" ReadOnly="True" 
                    SortExpression="Status" />
                <asp:BoundField DataField="FbDate" HeaderText="发布时间" ReadOnly="True" SortExpression="FbDate" />
            </Columns>
            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
            <HeaderStyle BackColor="#59A2DE" Font-Bold="True" ForeColor="#F7F7F7" />
            <AlternatingRowStyle BackColor="#F7F7F7" Height="20px" />
        </asp:GridView> 
</div>
</asp:Content>

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

AI 解读 AI

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

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