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

📄 ht_booklist.aspx

📁 一个简单的网上书店
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/HT.master" CodeFile="ht_booklist.aspx.cs" Inherits="ht_booklist" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <div style="z-index: 101; left: 23px; width: 800px; position: absolute; top: 1px;
        height: 579px">
        <script language="javascript" type="text/javascript">
             function del(){
               return confirm('确定删除用户吗?');
               }
             function quanxuan(cboTitle){
               var cbh=document.getElementsByTagName("input");
               for(i=0;i<cbh.length;i++){
                 if(cbh[i].type=='checkbox'){
                     cbh[i].checked=cboTitle.checked;
                 }
               } 
             }
         </script>               
        <table style="width: 800px">
              <tr class="category">
                <td style="width: 800px;" align="center" valign="middle">
                  <span style="color: #000066; font-family: 宋体; font-size:15px;">图书列表</span>
                </td>
            </tr>
            <tr>
                <td style=" height:16px; width: 800px;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 800px" align="center" valign="top">
                      <table style="width: 700px;">
                           <tr class="category">
                                    <td  colspan="7" align="left">
                                        将所选书籍归入:<asp:DropDownList ID="DropDownList1" runat="server"  Width="100px" DataSourceID="objBooktype" DataTextField="Name" DataValueField="Id">
                                        </asp:DropDownList><asp:ObjectDataSource ID="objBooktype" runat="server" SelectMethod="selBookType"
                                            TypeName="CommBLL.SelDataSouce"></asp:ObjectDataSource>
                                        <asp:Button ID="Button3" runat="server" Text="确定" Width="44px" OnClick="Button3_Click" /></td>
                           </tr>
                           <tr class="row" >
                                        <td   style="width: 60px;  background-color: #99ccff;">
                                       <input type="checkbox" id="cboTitle" onclick="quanxuan(this)"/>全选
                                        </td>
                                        <td style="width: 140px; background-color: #99ccff;">
                                            书名
                                        </td>
                                        <td style="width: 100px; background-color: #99ccff;">
                                            作者
                                        </td>
                                        <td style="width: 100px; background-color: #99ccff;">
                                            出版社
                                        </td>
                                        <td style="width: 100px; background-color: #99ccff;">
                                            出版日期
                                        </td>
                                         <td style="width: 100px; background-color: #99ccff;">
                                            类别
                                        </td>
                                        <td style="width: 100px; background-color: #99ccff;">
                                            操作
                                        </td>
                             </tr>
                                  <tr>
                                    <td colspan="7">
                                    <asp:GridView ID="gdvbooks" runat="server" Width="700px" AutoGenerateColumns="False" ShowHeader="False">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemStyle Width="60px" />
                                            <ItemTemplate>
                                                <asp:CheckBox ID="cbh" runat="server" />
                                                <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#Eval("Id") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Title">
                                            <ItemStyle Width="140px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Author">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Label ID="lblpubName" runat="server" Text='<%#Eval("Pub.Name") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle Width="100px" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="PublishDate">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Label ID="lblbookType" runat="server" Text='<%#Eval("BookType.Name") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle Width="100px" />
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemStyle Width="100px" />
                                            <ItemTemplate>
                                               <asp:Button ID="Button2" runat="server" CommandArgument='<%#Eval("Id")%>' CommandName="kk" Text="详细" OnCommand="Button2_Command" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                     </asp:GridView>
                                    </td>
                                  </tr> 
                             <tr>
                                    <td style="width: 60px; height: 16px" align="center" valign="top" class="t_number">
                                        <asp:Button ID="btnDel" runat="server" Text="删 除" OnClientClick="return del()" OnClick="btnDel_Click" /></td>
                                    <td style="width: 640px; height: 16px" align="right" valign="top" class="t_number" colspan="6">
                                    <asp:ImageButton ID="btnFisrt" runat="server" OnClick="btnFisrt_Click" ImageUrl="~/image/_firstpg.gif" Height="18px" Width="57px"/>
                                     <asp:ImageButton ID="ImageButton2" runat="server" OnClick="ImageButton2_Click" ImageUrl="~/image/_prevpg.gif"  Height="18px" Width="57px"/>
                                <asp:ImageButton ID="ImageButton3" runat="server" OnClick="ImageButton3_Click" ImageUrl="~/image/_nextpg.gif" Height="18px" Width="57px"/>
                                <asp:ImageButton ID="ImageButton4" runat="server" OnClick="ImageButton4_Click" ImageUrl="~/image/_lastpg.gif" Height="18px" Width="57px"/>
                                &nbsp; &nbsp;当前页:<asp:Label ID="lblcruutenPager" runat="server" Text="1"></asp:Label>&nbsp; 共<asp:Label ID="lblcPagers" runat="server" Text="0"></asp:Label>
                                页&nbsp; &nbsp; 跳转到第<asp:TextBox ID="txtcrupager" runat="server" Height="14px" Width="28px"></asp:TextBox>
                                页<asp:Button
                                    ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" />
                                    </td>
                             </tr>
                     </table>  
                </td>
            </tr>
             <tr class="category">
                <td style="width: 800px; height: 19px;" align="center" valign="middle"></td>
            </tr>
        </table>
    </div>
</asp:Content>

⌨️ 快捷键说明

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