BookSearch.aspx

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookSearch.aspx.cs" Inherits="BookSearch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>BookSearch</title>
    <style type="text/css">
        #search asp:Button:hover
        {
            background-color: Blue;
        }
    </style>
</head>
<body style="background-image:url(./IMG/wallpaper.jpg)">
    <form id="form_booksearch" runat="server">
    <div id="search" style="text-align: center">
        <table cellpadding="0px" cellspacing="4px" style="text-align: center;">
            <tr>
                <td colspan="2">
                    <asp:LinkButton ID="LinkButton_Default" runat="server" BorderStyle="None" Font-Names="微软雅黑"
                        PostBackUrl="~/Default.aspx" Width="100%" Font-Bold="True" 
                        ForeColor="#3399FF">首  页</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="SearchContent" runat="server" Height="100%" Width="230px" EnableTheming="False"></asp:TextBox>
                </td>
                <td>
                    <asp:DropDownList ID="DDL_A_N" runat="server" Height="25px" Width="70px" AutoPostBack="True"
                        BackColor="#3399FF" Font-Names="微软雅黑" ForeColor="White" EnableTheming="True">
                        <asp:ListItem Value="BookName">书名</asp:ListItem>
                        <asp:ListItem Value="BookAuthor">作者</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="Search" runat="server" Font-Names="微软雅黑" OnClick="Search_Click" Text="搜索(可模糊查询的说)"
                        Width="100%" Font-Bold="True" ForeColor="#3399FF" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="Label_result" runat="server" BorderStyle="None" Width="100%" 
                        Font-Names="微软雅黑" ForeColor="#3399FF" Visible="False"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <hr size="4px" width="100%" style="color: gray">
    <div id="sr" style="text-align: center">
        <asp:GridView ID="GridView_BookSearchShow" runat="server" OnSelectedIndexChanged="GridView_BookSearchShow_SelectedIndexChanged"
            CellPadding="4" OnPageIndexChanging="GridView_BookSearchShow_OnPageIndexChanging"
            ForeColor="#333333" GridLines="None" Width="100%" AutoGenerateColumns="False"
            Height="100%" AllowPaging="True" HorizontalAlign="Center" CaptionAlign="Bottom"
            EnableTheming="False" Font-Names="微软雅黑" PageSize="8" UseAccessibleHeader="False">
            <RowStyle BackColor="#E3EAEB" Font-Names="微软雅黑" />
            <Columns>
                <asp:BoundField DataField="BookId" HeaderText="编号" ControlStyle-Width="25px" ControlStyle-Font-Names="微软雅黑 ">
后面还有 31 行代码,购买后查看完整代码

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

AI 解读

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

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