cartBasket.aspx

(开头部分) 21KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Debug="true" Language="C#" AutoEventWireup="true" CodeFile="cartBasket.aspx.cs" Inherits="cartBasket" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>织梦在线购物网</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color: #0066ff;">
    <form id="form1" runat="server">
    <div>
        <table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
           <td><img name="shopCart_r1_c1" src="images/shopCart_r1_c1.jpg" width="720" height="101" border="0" alt=""></td>
          </tr>
          <tr>
           <td background="images/shopCart_r3_c1.jpg">
               <table align="left" border="0" cellpadding="20" cellspacing="0" width="720">
	              <tr valign="top">
	               <td class="mainbg" style="width: 540px"><h1><font color="#FF6600">在线购物 - 笔记本电脑区</font></h1>
	                 <table border="0" align="center" cellpadding="4" cellspacing="2">
                     <tr>
                      <td align="center" style="width: 500px; background-color: #ffffff;">
                          <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                              CellPadding="0" CellSpacing="1" DataKeyNames="cartID" DataSourceID="AccessDataSource1"
                              HorizontalAlign="Center" Width="100%" BackColor="#E0E0E0" OnRowUpdated="GridView1_Updated" OnRowDeleted="GridView1_Deleted">
                              <Columns>
                                  <asp:CommandField ButtonType="Button" HeaderText="动作" ShowDeleteButton="True" ShowEditButton="True" CausesValidation="False">
                                      <ItemStyle Width="90px" />
                                  </asp:CommandField>
                                  <asp:BoundField DataField="ProductID" HeaderText="编号" ReadOnly="True" SortExpression="ProductID">
                                      <ItemStyle Width="30px" />
                                  </asp:BoundField>
                                  <asp:BoundField DataField="ProductName" HeaderText="产品名称" ReadOnly="True" SortExpression="ProductName" />
                                  <asp:BoundField DataField="UnitPrice" DataFormatString="{0:c0}" HeaderText="单价" HtmlEncode="False"
                                      ReadOnly="True" SortExpression="UnitPrice">
                                      <ItemStyle Width="80px" />
                                  </asp:BoundField>
                                  <asp:BoundField DataField="Quantity" HeaderText="数量" SortExpression="Quantity">
                                      <ControlStyle Width="30px" />
                                      <ItemStyle Width="50px" />
                                  </asp:BoundField>
                                  <asp:TemplateField HeaderText="合计">
                                      <ItemStyle Width="80px" />
                                      <ItemTemplate>
                                          <asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0:C0}", Convert.ToString(Convert.ToInt32(Eval("UnitPrice"))*Convert.ToInt32(Eval("Quantity")))) %>'></asp:Label>
                                      </ItemTemplate>
                                      <EditItemTemplate>
                                          <asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0:C0}", Convert.ToString(Convert.ToInt32(Eval("UnitPrice"))*Convert.ToInt32(Eval("Quantity")))) %>'></asp:Label>
                                      </EditItemTemplate>
                                  </asp:TemplateField>
                              </Columns>
                              <RowStyle BackColor="WhiteSmoke" Height="24px" />
                              <HeaderStyle CssClass="head1" Height="24px" />
                              <AlternatingRowStyle BackColor="Gainsboro" />
                          </asp:GridView>
                          <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" BorderWidth="0px"
                              CellPadding="4" CellSpacing="1" DataSourceID="AccessDataSource2" HorizontalAlign="Center"
                              Width="100%" BackColor="#E0E0E0">
后面还有 218 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。