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

📄 searchresult.aspx

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

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="searchresult.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 rowspan="3" style="width: 72%">
                     <table style="width: 100%" >
                         <caption style="font-size: 30pt; vertical-align: top; color: blue; background-color: transparent;
                             text-align: center">
                             图书查询结果</caption>
                         <tr>
                             <td colspan="3" style="height: 325px; width: 489px;" align="center">
                                 <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
                                     Width="455px" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound">
                                     <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                     <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                     <EmptyDataTemplate>
                                         &nbsp;<asp:Image ID="Image1" runat="server" Height="58px" ImageUrl="~/image/booknotfind.gif"
                                             Width="58px" />对不起,没有你想要的图书<br />
                                         &nbsp; &nbsp; &nbsp;&nbsp;
                                         sorry,the book don't be found
                                     </EmptyDataTemplate>
                                     <EditRowStyle BackColor="#999999" />
                                     <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                     <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                     <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                     <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                     <Columns>
                                         <asp:BoundField DataField="bgetnumber" HeaderText="索取号" />
                                         <asp:BoundField DataField="bname" HeaderText="书名" />
                                         <asp:BoundField DataField="bauthor" HeaderText="作者" />
                                         <asp:BoundField DataField="bpress" HeaderText="出版社" />
                                         <asp:BoundField DataField="bdate" HtmlEncode=false DataFormatString="{0:yyyy-mm-dd}" HeaderText="出版日期" />
                                     </Columns>
                                 </asp:GridView>
                             </td>
                         </tr>
                         <tr>
                             <td align="center" colspan="3" style="height: 40px; width: 489px;">
                                 <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" 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: 隶书" LogoutPageUrl="~/logout.aspx" 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 + -