⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 booksearch.aspx

📁 c#做的一个图书管理系统
💻 ASPX
字号:

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="booksearch.aspx.cs" Inherits="reader_Default" Title="读者" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    &nbsp;
       <table style="width: 100%; height: 320px; border-right: blue thin double; border-top: blue thin double; border-left: blue thin double; border-bottom: blue thin double;" id="TABLE1">
        <tr>
            <td style="height: 42px; width:30%;border-right: blue thin solid" colspan="3" align="center">
                            &nbsp;<asp:LoginView ID="LoginView1" runat="server">
                    <RoleGroups>
                        <asp:RoleGroup>
                        </asp:RoleGroup>
                    </RoleGroups>
                    <LoggedInTemplate>
                        欢迎回来:
                    </LoggedInTemplate>
                </asp:LoginView>
              <asp:LoginName ID="LoginName1" runat="server" Style="color: green; font-family: 隶书" />
            </td>
                 <td width=70% rowspan="3">
                <table id="Table2" border="1" style="left: 0px; width: 100%; position: relative; top: 32px;
                    height: 164px" align="center">
                    <caption style="font-size: 40pt; vertical-align: top; color: black; font-style: normal;
                        background-color: transparent; text-align: center">
                        <asp:Image ID="Image1" runat="server" Height="54px" ImageUrl="~/image/booksearch.gif"
                            Width="61px" />图书查询</caption>
                    <tr>
                        <td style="height: 30px" width="30%">
                            <p align="right">
                                请选择查询类型:</p>
                        </td>
                        <td style="height: 30px; width: 70%;">
                            &nbsp;<asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem Value="0">书名</asp:ListItem>
                                <asp:ListItem Value="1">作者</asp:ListItem>
                                <asp:ListItem Value="2">主题词</asp:ListItem>
                                <asp:ListItem Value="3">索取号</asp:ListItem>
                                <asp:ListItem Value="4">出版社</asp:ListItem>
                                <asp:ListItem Value="5">书目编号</asp:ListItem>
                            </asp:DropDownList></td>
                        </tr>
                      <tr>
                        <td style="height: 30px" width="30%">
                            <p align="right">
                                请输入查询内容:</p>
                        </td>
                        <td style="height: 30px; width: 70%;" align="left">
                            &nbsp;
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" /></td>
                    </tr>
                                        <tr>
                        <td width="30%" style="height: 30px">
                            <p align="right">
                                请选择查询模式:</p>
                        </td>
                        <td style="width: 70%; height: 30px;">
                            &nbsp;<asp:RadioButton ID="RadioButton1" runat="server" GroupName="mode" Text="精确匹配" />
                            <asp:RadioButton ID="RadioButton2" runat="server" GroupName="mode" Text="模糊查询" /></td>
                    </tr>
                        </table>

                 </td>

        </tr>
        <tr>
            <td style="height: 334px; width: 30%;border-right: blue thin solid" colspan="3" align="center">
                <asp:BulletedList ID="BulletedList1" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="mname" DataValueField="mname" DisplayMode="LinkButton" Height="300px"
                    Style="vertical-align: middle; direction: ltr; text-indent: 5pt; line-height: 30pt;
                    font-family: 隶书; text-align: center" Width="135px" OnClick="BulletedList1_Click">
                </asp:BulletedList>
                 

            </td>
        </tr>
        <tr>
            <td style="height: 48px; width: 30%;border-right: blue thin solid" align="center" colspan="3">
            <asp:LoginStatus ID="LoginStatus1" runat="server" Font-Size="Large" Style="font-family: 隶书" LogoutAction="Redirect" OnLoggingOut="LoginStatus1_LoggingOut" />
            </td>
        </tr>
    </table>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=.;Initial Catalog=library;User ID=sa"
    ProviderName="System.Data.SqlClient" SelectCommand="SELECT [mname] FROM [menu] WHERE ([mkid] = @mkid)">
    <SelectParameters>
        <asp:Parameter DefaultValue="读者" Name="mkid" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -