ShopCar.aspx

(开头部分) 5KB

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

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ShopCar.aspx.cs" Inherits="ShopCar" ValidateRequest="false" %>

<%@ Register assembly="DotNetTextBox" namespace="DotNetTextBox" tagprefix="DNTB" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
     <asp:Panel ID="Panel2" runat="server" Height="800px">
         <table class="style1">
             <tr>
                 <td>
                     <asp:Image ID="Image4" runat="server" Height="31px" ImageUrl="~/images/购物.jpg" 
                         Width="583px" />
                 </td>
             </tr>
             <tr>
                 <td>
                      <table border="0"    cellpadding="0" cellspacing="0" style="width: 530px; height: 310px">
            <tr style ="height :20px;">
                <td  style ="text-align :left ;">
                    <asp:Label ID="Label1" runat="server" Text="购物车"></asp:Label>
                </td>
            </tr>
            <tr style ="height :290px;">
                <td   style="vertical-align :top ; text-align :left ; height: 290px;">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 520px">
                        <tr>
                            <td style="width: auto; height: 122px;">
                                <asp:GridView ID="gvShopCar" runat="server" AutoGenerateColumns="False" AllowPaging="True" PageSize="5"  OnPageIndexChanging="gvShopCar_PageIndexChanging" OnRowDeleting="gvShopCar_RowDeleting" OnRowEditing="gvShopCar_RowEditing" OnRowUpdating="gvShopCar_RowUpdating" OnRowDataBound="gvShopCar_RowDataBound" DataKeyNames="BuyID">
                                    <Columns>
                                        <asp:BoundField DataField="GoodsName" HeaderText="商品名称" ReadOnly="True">
                                            <ItemStyle HorizontalAlign="Center" Width="200px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Price" HeaderText="价格(元)" ReadOnly="True">
                                            <ItemStyle HorizontalAlign="Center" Width="70px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Number" HeaderText="数量">
                                            <ItemStyle HorizontalAlign="Center" Width="70px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SumPrice" HeaderText="小计" >
                                         <ItemStyle HorizontalAlign="Center" Width="70px" />
                                        </asp:BoundField>
                                        <asp:TemplateField ShowHeader="False">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                    Text="删除" OnClientClick="return confirm('您确认删除该记录吗?');">
                                                </asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:CommandField ShowEditButton="True" ShowCancelButton="False" />
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
后面还有 30 行代码,购买后查看完整代码

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

AI 解读 AI

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

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