-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcart.aspx
executable file
·42 lines (39 loc) · 2.22 KB
/
cart.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
<%@ Page Title="" Language="C#" MasterPageFile="~/usermaster.master" AutoEventWireup="true"
CodeFile="cart.aspx.cs" Inherits="cart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="style3">
<div style="text-align: left"><asp:HyperLink ID="HyperLink2" runat="server"
NavigateUrl="~/products.aspx" BorderStyle="Groove"
style="text-align: left">Click here to Continue shopping...</asp:HyperLink></div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" EmptyDataText="No Product added to cart"
ShowFooter="True" OnRowDeleting="GridView1_RowDeleting" BorderColor="Gray"
BorderStyle="Groove" style="text-align: center;border-radius:15px;"
Width="704px" BackColor="#CCCCCC" CellPadding="4" CellSpacing="2"
ForeColor="Black" >
<Columns>
<asp:BoundField DataField="slno" HeaderText="SLNO" />
<asp:BoundField DataField="pname" HeaderText="PRODUCT NAME" />
<asp:BoundField DataField="pqty" HeaderText="QUANITITY" />
<asp:BoundField DataField="pprice" HeaderText="PRICE(PER QTY)" />
<asp:BoundField DataField="tprice" HeaderText="TOTAL PRICE" />
<asp:CommandField ShowDeleteButton="True" ButtonType="Button" />
</Columns>
<FooterStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" BorderColor="Gray" BorderStyle="Groove"
ForeColor="White" Font-Bold="True" />
<PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
<RowStyle BackColor="White" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#808080" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#383838" />
</asp:GridView>
<br />
<asp:Button ID="Button3" runat="server" Text="Place Order"
OnClick="Button3_Click" />
</div>
</asp:Content>