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

📄 searchpage.aspx

📁 C#编的网上交易站点系统。实现购买
💻 ASPX
字号:
<%@ Page Language="C#" CompileWith="searchpage.aspx.cs" ClassName="Default_aspx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body background="image/news_2003816213854.jpg">
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="textsearch" Style="z-index: 102; left: 160px; position: absolute; top: 48px"
            Runat="server" BackColor="White" ></asp:TextBox>
        &nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" Style="z-index: 103; left: 344px; position: absolute; top: 48px"
            Runat="server" Text="搜索" OnClick="Button1_Click" />
        <asp:Label ID="Label1" Style="z-index: 104; left: 16px; position: absolute; top: 48px"
            Runat="server" Text="在此输入关键字:" BackColor="#FFFFC0" BorderStyle="None" Font-Bold="True"
            Font-Size="Small"></asp:Label>
        &nbsp;
        <asp:DataGrid ID="dg" Style="z-index: 105; left: 48px; position: absolute;
            top: 96px" Runat="server" BackColor="LightGoldenrodYellow" BorderWidth="1px" 
            BorderColor="Tan" CellPadding="2" AllowPaging="True"    OnItemCommand="DataGrid1_ItemCommand" DataKeyField="花ID"  GridLines="None" ForeColor="Black" OnPageIndexChanged="dg_PageIndexChanged"  
            
            
              >
            <Columns>
                <asp:ButtonColumn Text="购买" ButtonType="PushButton" CommandName="buy"></asp:ButtonColumn>
            </Columns>
            <SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue"></SelectedItemStyle>
            <HeaderStyle Font-Bold="True" BackColor="Tan"></HeaderStyle>
            <PagerStyle BackColor="PaleGoldenrod" HorizontalAlign="Center" ForeColor="DarkSlateBlue"></PagerStyle>
            <AlternatingItemStyle BackColor="PaleGoldenrod"></AlternatingItemStyle>
            <FooterStyle BackColor="Tan"></FooterStyle>
        </asp:DataGrid>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="welinfo" Style="left: 88px; position: absolute; top: 0px; z-index: 101;" Runat="server" BorderStyle="None" BackColor="Transparent" 
            ></asp:TextBox>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox3" Style="z-index: 109; left: 680px; position: absolute;
            top: 208px" Runat="server" TextMode="MultiLine" Width="200px" Height="104px" ReadOnly="True" BorderStyle="None" BackColor="Transparent"></asp:TextBox>
        <asp:DataGrid ID="cart" Style="z-index: 110; left: 288px; position: absolute; top: 96px"
            Runat="server" AutoGenerateColumns="False" OnItemCommand="cart_ItemCommand" OnDeleteCommand="cart_DeleteCommand"  BackColor="LightGoldenrodYellow" CellPadding="2" BorderColor="Tan" BorderWidth="1px" GridLines="None" ForeColor="Black" >
            <Columns>
                <asp:BoundColumn DataField="花ID" HeaderText="花卉名"></asp:BoundColumn>
                <asp:TemplateColumn HeaderText="数量"><ItemTemplate>
                    <asp:TextBox ID="qty" Runat="server" Height="21px" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem,"qty") %>'></asp:TextBox>
                </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="价格" HeaderText="单价"></asp:BoundColumn>
                <asp:BoundColumn DataField="total" HeaderText="总计"></asp:BoundColumn>
                <asp:ButtonColumn HeaderText="更新数量" Text="更新数量" ButtonType="PushButton" CommandName="Select"></asp:ButtonColumn>
                <asp:ButtonColumn HeaderText="删除" Text="删除" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn>
            </Columns>
            <SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue"></SelectedItemStyle>
            <HeaderStyle Font-Bold="True" BackColor="Tan"></HeaderStyle>
            <PagerStyle BackColor="PaleGoldenrod" HorizontalAlign="Center" ForeColor="DarkSlateBlue"></PagerStyle>
            <AlternatingItemStyle BackColor="PaleGoldenrod"></AlternatingItemStyle>
            <FooterStyle BackColor="Tan"></FooterStyle>
        </asp:DataGrid>
        &nbsp;
        <table style="z-index: 111; left: 680px; position: absolute; top: 128px">
            <tr>
                <td style="width: 40px">
                    <span style="font-family: 宋体">总共:</span></td>
                <td style="width: 12px">
                    <asp:TextBox ID="TextBox5" Runat="server" BorderStyle="None" BackColor="Transparent" Height="18px" Width="71px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 40px">
                    <span style="font-family: 宋体">打折:</span></td>
                <td style="width: 12px">
                    <asp:TextBox ID="TextBox6" Runat="server" BorderStyle="None" BackColor="Transparent" Height="18px" Width="71px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 40px">
                    <span style="font-family: 宋体">支付:</span></td>
                <td style="width: 12px">
                    <asp:TextBox ID="TextBox7" Runat="server" BorderStyle="None" BackColor="Transparent" Height="18px" Width="71px"></asp:TextBox>
                </td>
            </tr>
        </table>
        &nbsp;
        <asp:Button ID="Button2" Style="z-index: 112; left: 672px; position: absolute; top: 96px"
            Runat="server" Text="计算总价" OnClick="Button2_Click" Font-Bold="True" />
        <asp:Button ID="Button6" Style="z-index: 113; left: 760px; position: absolute; top: 96px"
            Runat="server" Text="确认订单" OnClick="Button6_Click" Font-Bold="True" />
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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