📄 default.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default4" Title="19购书网首页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
新书快递~~<br />
<asp:DataList ID="DataList1" runat="server" BackColor="#CCCCCC" BorderColor="#999999"
BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" DataSourceID="AccessDataSource2"
ForeColor="Black" GridLines="Both" Height="301px" RepeatColumns="3" Width="833px" DataKeyField="BName1" OnItemCommand="DataList1_ItemCommand" Font-Size="Small">
<FooterStyle BackColor="#CCCCCC" />
<SelectedItemStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<ItemTemplate>
<table style="width: 250px; height: 116px">
<tr>
<td rowspan="6" style="width: 87px; vertical-align: middle; text-align: center;">
<asp:Image ID="Image1" runat="server" Height="112px" Width="92px" ImageUrl='<%# Eval("Bimage") %>' AlternateText="暂无图像" /></td>
<td style="width: 153px; color: forestgreen;">
名称:
<asp:Label ID="Label1" runat="server" ForeColor="DimGray" TabIndex="11" Text='<%# Eval("BName1") %>'></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: small; width: 153px; color: forestgreen; height: 18px;">
分类:
<asp:Label ID="Label2" runat="server" ForeColor="DimGray" Text='<%# Eval("BKind") %>'></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: small; width: 153px; color: forestgreen; vertical-align: text-top; height: 14px; text-align: left;">
作者:<asp:Label ID="Label4" runat="server" ForeColor="DimGray" Text='<%# Eval("BAuthor") %>'></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: small; width: 153px; color: forestgreen; vertical-align: text-top; height: 1px; text-align: left;">
出版社:<asp:Label ID="Label3" runat="server" ForeColor="DimGray" Style="overflow: hidden"
Text='<%# Eval("BPress") %>'></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: small; width: 153px; color: forestgreen;">
价格:<asp:Label ID="Label5" runat="server" ForeColor="Red" Text='<%# Eval("BPrince2") %>'
Width="41px"></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="width: 153px; text-align: right">
<asp:Button ID="Button1" runat="server" Text="购买" /></td>
</tr>
</table>
</ItemTemplate>
<ItemStyle BackColor="White" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
</asp:DataList><asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/BDB/BookStore.mdb"
SelectCommand="SELECT * FROM [Book] WHERE ([BKind] = ?)">
<SelectParameters>
<asp:Parameter DefaultValue="新书" Name="BKind" Type="String" />
</SelectParameters>
</asp:AccessDataSource>
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/BDB/BookStore.mdb"
OldValuesParameterFormatString="original_{0}" SelectCommand='SELECT * FROM [Book] WHERE ([BKind] = "推荐")'>
</asp:AccessDataSource>
<br />
编辑推荐~~<br />
<asp:DataList ID="DataList2" runat="server" BackColor="#CCCCCC" BorderColor="#999999"
BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" DataSourceID="AccessDataSource1"
ForeColor="Black" GridLines="Both" Height="326px" RepeatColumns="3" RepeatDirection="Horizontal"
Width="826px" OnItemCommand="DataList2_ItemCommand">
<FooterStyle BackColor="#CCCCCC" />
<SelectedItemStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<ItemTemplate><table style="width: 250px; height: 116px">
<tr>
<td rowspan="6" style="width: 87px; vertical-align: middle; text-align: center;">
<asp:Image ID="Image1" runat="server" Height="112px" Width="92px" ImageUrl='<%# Eval("Bimage") %>' AlternateText="暂无图像" /></td>
<td style="font-size: small; width: 153px; color: forestgreen;">
名称:
<asp:Label ID="Label1" runat="server" ForeColor="DimGray" TabIndex="11" Text='<%# Eval("BName1") %>'></asp:Label></td>
</tr>
<tr style="font-size: 12pt; color: #228b22;">
<td style="font-size: small; width: 153px; color: forestgreen; height: 18px;">
分类:
<asp:Label ID="Label2" runat="server" ForeColor="DimGray" Text='<%# Eval("BKind") %>'></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: small; width: 153px; color: forestgreen; vertical-align: text-top; height: 14px; text-align: left;">
作者:<asp:Label ID="Label4" runat="server" ForeColor="DimGray" Text='<%# Eval("BAuthor") %>'></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: small; width: 153px; color: forestgreen; vertical-align: text-top; height: 1px; text-align: left;">
出版社:<asp:Label ID="Label3" runat="server" ForeColor="DimGray" Style="overflow: hidden"
Text='<%# Eval("BPress") %>'></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: small; width: 153px; color: forestgreen;">
价格:<asp:Label ID="Label5" runat="server" ForeColor="Red" Text='<%# Eval("BPrince2") %>'
Width="41px"></asp:Label></td>
</tr>
<tr style="font-size: 12pt">
<td style="width: 153px; text-align: right">
<asp:Button ID="Button1" runat="server" Text="购买" /></td>
</tr>
</table>
</ItemTemplate>
<ItemStyle BackColor="White" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
</asp:DataList><br />
<br />
<br />
<br />
<br />
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -