-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwatch.aspx
127 lines (101 loc) · 4.65 KB
/
watch.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<%@ Page Title="" Language="C#" MasterPageFile="~/Home.master" AutoEventWireup="true" CodeFile="watch.aspx.cs" Inherits="watch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.auto-style1 {
width: 101%;
height: 260px;
margin-bottom: 0px;
}
.auto-style2 {
width: 443px;
}
.auto-style3 {
width: 300px;
height: 195px;
margin-left: 10px;
margin-right: 10px;
}
.auto-style5 {
height: 39px;
text-align: center;
background-color: #FFFFFF;
}
.auto-style6 {
text-align: center;
background-color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.auto-style7 {
background-color: #FFFFFF;
text-align: left;
height: 14px;
width: 1380px;
}
td {
align-items: center;
border-image-outset:3px;
font-weight: bold;
}
table {
margin-left: 50px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DataList ID="DataList1" runat="server" DataKeyField="watchid" DataSourceID="SqlDataSource1" CellPadding="1" RepeatColumns="4" RepeatDirection="Horizontal" CellSpacing="2" OnItemCommand="DataList1_ItemCommand1">
<ItemTemplate>
<table border="0" class="auto-style3 card" style="width: 18rem; height: 33rem">
<tr class="card-body">
<td class="auto-style6">Product ID: <asp:Label ID="Label3" runat="server" Text='<%# Eval("watchid") %>'></asp:Label>
</td>
</tr>
<tr>
<td class="auto-style5">Product Name: <asp:Label ID="Label4" runat="server" Text='<%# Eval("watchname") %>'></asp:Label>
</td>
</tr>
<tr>
<td class="auto-style6" style="align-items:center; margin-left:28px;">
<asp:Image ID="Image1" runat="server" class="img-fluid" Height="273px" ImageUrl='<%# Eval("watchimg") %>' Width="234px" />
</td>
</tr>
<tr>
<td class="auto-style6">Rs: <asp:Label ID="Label5" runat="server" Text='<%# Eval("price") %>'></asp:Label>
</td>
</tr>
<tr>
<td class="auto-style6">Quantity: <asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="auto-style6">Size : <asp:DropDownList ID="DropDownList3" runat="server">
<asp:ListItem>S</asp:ListItem>
<asp:ListItem>XS</asp:ListItem>
<asp:ListItem>M</asp:ListItem>
<asp:ListItem>XL</asp:ListItem>
<asp:ListItem>XXL</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="auto-style6"><a class="navbar-brand logo_h" href="Cart.aspx">
<asp:ImageButton ID="ImageButton1" runat="server" CommandName="addtocart" class="btn btn-primary" CommandArgument='<%# Eval("watchid") %>' />
</a>
</td>
</tr>
</table>
<br />
<br />
<br />
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" DeleteCommand="DELETE FROM [watch] WHERE [watchid] = @watchid" InsertCommand="INSERT INTO [watch] ([watchname], [price], [watchimg]) VALUES (@watchname, @price, @watchimg)" SelectCommand="SELECT * FROM [watch]" UpdateCommand="UPDATE [watch] SET [watchname] = @watchname, [price] = @price, [watchimg] = @watchimg WHERE [watchid] = @watchid">
</asp:SqlDataSource>
</asp:Content>