showbookbytype.aspx

来自「网上书店」· ASPX 代码 · 共 81 行

ASPX
81
字号
<%@ Page language="c#" Inherits="BookShop.ShowBookByType" CodeFile="ShowBookByType.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>ShowBookByType</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="ioffice.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<form method="post" runat="server">
  <FONT face="宋体" size="3"> 
  <TABLE id="Table1" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
    <TR> 
      <TD width="245" height =700> <iframe id="iFrame1" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" tabIndex="0" marginWidth="0" marginHeight="0" src="left.aspx" frameBorder="0" width="240" height="100%"> 
        </iframe> </TD>
      <TD vAlign="top" align="middle"> <TABLE id="Table2" cellSpacing="0" cellPadding="0" width="95%" border="0">
          <TR> 
            <TD height="20"></TD>
          </TR>
          <TR> 
            <TD>
              <asp:datalist id="dl_BookByType" runat="server" ShowFooter="False" ShowHeader="False" CssClass="td" Width="100%" RepeatColumns="2">
											<ItemTemplate>
                      <FONT face="宋体"> 
                      <TABLE id="Table3" cellSpacing="0" cellPadding="0" width="350" height="160">
                        <TR> 
                          <td width="8"></td>
                          <TD vAlign="center" align="middle" width="100"><a href='ShowBook.aspx?bookid=<%# DataBinder.Eval(Container.DataItem,"id")%>&BookType=<%# DataBinder.Eval(Container.DataItem,"type")%>'>
                            <%# DataBinder.Eval(Container.DataItem,"Image")%>
                            </a></TD>
                          <TD width="200"> <TABLE id="Table4" cellSpacing="0" cellPadding="0" width="100%" border="0" height="100">
                              <TR> 
                                <TD width="100%"> <span style="DISPLAY: inline; WIDTH: 100%;"><a href='ShowBook.aspx?bookid=<%# DataBinder.Eval(Container.DataItem,"id")%>&BookType=<%# DataBinder.Eval(Container.DataItem,"type")%>'> 
                                  <b> 
                                  <%# DataBinder.Eval(Container.DataItem,"name")%>
                                  </b></a></span> </TD>
                              </TR>
                              <TR> 
                                <TD width="100%"> <span style="DISPLAY: inline; WIDTH: 100%; "><b>作者:</b>
                                  <%# DataBinder.Eval(Container.DataItem,"Author")%>
                                  </span> </TD>
                              </TR>
                              <TR> 
                                <TD width="100%"> <span style="DISPLAY: inline; WIDTH: 100%; "><b>价格:</b>$
                                  <%# DataBinder.Eval(Container.DataItem,"price")%>
                                  </span> </TD>
                              </TR>
                              <TR> 
                                <TD width="100%"> <span style="DISPLAY: inline; WIDTH: 100%; "><b>折扣:</b>
                                  <%# DataBinder.Eval(Container.DataItem,"Discount")%>
                                  </span> </TD>
                              </TR>
                              <TR> 
                                <TD width="100%"> <span style="DISPLAY: inline; WIDTH: 100%; "><b><a href='AddToCart.aspx?bookid=<%# DataBinder.Eval(Container.DataItem,"id")%>&Backurl=ShowBookByType.aspx?BookType=<%# DataBinder.Eval(Container.DataItem,"type")%>'> 
                                  <font color="#ff0000">添加到购物车</font></a> 
                                  </b></span> </TD>
                              </TR>
                            </TABLE></TD>
                        </TR>
                      </TABLE>
                      </FONT> </ItemTemplate>
										</asp:datalist></TD>
          </TR>
          <TR> 
            <TD></TD>
          </TR>
          <TR> 
            <TD></TD>
          </TR>
        </TABLE></TD>
    </TR>
  </TABLE>
  </FONT> 
</form>
</body>
</HTML>

⌨️ 快捷键说明

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