-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddtoCart.aspx
99 lines (83 loc) · 5.23 KB
/
AddtoCart.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<%@ Page Title="" Language="C#" MasterPageFile="~/main.Master" AutoEventWireup="true" CodeBehind="AddtoCart.aspx.cs" Inherits="DB_Prpject.AddtoCart" EnableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.auto-style1 {
margin-top: 0px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div align="center">
<h1><strong>
<asp:Label ID="Label1" runat="server" Text="My Cart" style="text-align: center"></asp:Label>
</strong></h1>
<p>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
<asp:LinkButton ID="LinkButton14" runat="server" OnClick="LinkButton14_Click"><-- Continue Shopping</asp:LinkButton>
<asp:LinkButton ID="LinkButton15" runat="server" OnClick="LinkButton15_Click">clear cart</asp:LinkButton>
</p>
<%--<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" EmptyDataText="No Product Available In Cart" ForeColor="Black" BorderColor="#000099" BorderWidth="5px" Font-Bold="True" HorizontalAlign="Center">
<Columns>
<asp:BoundField DataField="srno" HeaderText="Sr No">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="pid" HeaderText="Product ID">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:ImageField DataImageUrlField="pimage" HeaderText="Product Image">
<ControlStyle Height="300px" Width="340px" />
<ItemStyle HorizontalAlign="Center" />
</asp:ImageField>
<asp:BoundField DataField="pname" HeaderText="Product Name">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="pprice" HeaderText="Price">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="pquantity" HeaderText="Quantitiy">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="ptotalprice" HeaderText="Total Price">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:CommandField DeleteText="Remove" ShowDeleteButton="True" />
</Columns>
<FooterStyle BackColor="#0066FF" />
<HeaderStyle BackColor="#187E18" ForeColor="White" />
</asp:GridView>--%>
<div class="text-sm-center">
<asp:GridView ID="GridView1" runat="server" ForeColor="Black" Height="45px" Width="623px" HorizontalAlign="Center" EmptyDataText="Your Cart Is Empty" >
</asp:GridView>
</div>
<br />
<asp:Label ID="Label2" runat="server" Text="Total" Width="100px"></asp:Label>
<asp:Label ID="Label3" runat="server"></asp:Label>
<br />
<br />
<br />
<asp:Button ID="Button1" runat="server" BackColor="#187E18" ClientIDMode="Predictable" CssClass="active" Font-Bold="True" ForeColor="White" Text="Buy" Width="104px" OnClick="Button1_Click" />
<br />
<br />
<div ID="pane" runat="server" style="top: 700px; position: absolute; left: 500px; color: #000000; background-color: #3399FF;">
<asp:Panel ID="Panel1" runat="server" Height="251px" HorizontalAlign="Center" Width="348px" CssClass="auto-style1">
<div class="text-sm-center">
<br />
<br />
<asp:Label ID="Label9" runat="server" Text="Purchased Successful"></asp:Label>
<br />
<br /> <asp:Button ID="Button2" runat="server" Height="35px" OnClick="Button2_Click" Text="close" Width="99px" />
<br />
<br />
</div>
</asp:Panel>
</div>
<br />
<br />
<br />
</div>
</asp:Content>