-
Notifications
You must be signed in to change notification settings - Fork 0
/
Products.aspx
144 lines (132 loc) · 13.5 KB
/
Products.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Products.aspx.cs" Inherits="AlTarwadaWebStore.Products" UnobtrusiveValidationMode="None"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Products</title>
<meta charset="utf-8" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" />
<script src="http://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<link href="Content/Styles.css" rel="stylesheet" />
</head>
<body data-spy="scroll" data-target=".navbar" data-offset="50">
<form id="form1" runat="server">
<div class="page-container">
<div id="content-wrap">
<div>
<!--- Navigation bar start-->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="Default.aspx"><span><img src="Images/logo-new.png" alt="Tarwada Web Portal" height="30"/></span> Al Tarwada Tailoring Store </a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="Default.aspx"><span class="glyphicon glyphicon-home"></span></a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle active" data-toggle="dropdown"> Products <b class="caret"></b></a>
<div>
<ul class="dropdown-menu">
<li role="separator"></li>
<li class="dropdown-header">Ladies Designs</li>
<li role="separator"></li>
<li><asp:LinkButton ID="LinkButton1" runat="server" OnClick="lwork">Lace</asp:LinkButton></li>
<li><asp:LinkButton ID="LinkButton2" runat="server" OnClick="ework">Embroidery</asp:LinkButton></li>
<li role="separator"></li>
<li class="dropdown-header">Babies' Products</li>
<li role="separator"></li>
<li><asp:LinkButton ID="LinkButton3" runat="server" OnClick="bwork">Baby Bag</asp:LinkButton></li>
<li><asp:LinkButton ID="LinkButton4" runat="server" OnClick="fwork">Baby Full Set</asp:LinkButton></li>
<li><asp:LinkButton ID="LinkButton5" runat="server" OnClick="cwork">Cradle</asp:LinkButton></li>
</ul>
</div>
</li>
<li><asp:LinkButton ID="cart" onclick="Button2_Click" runat="server">Cart<span class="badge" id="pcount" runat="server"></span></asp:LinkButton></li>
<li><a href="About.aspx">About Us</a></li>
<li><a href="Contact.aspx">Contact Us</a></li>
</ul>
</div>
</div>
<!--- Navigation bar end-->
</div>
</div>
<br />
<div style="padding-top:50px" class="text-center"><h3> Products </h3></div>
<div class ="row match-to-row" style="padding-top:50px">
<asp:Repeater ID="rptPro" runat="server">
<ItemTemplate>
<div class="col-lg-3 col-md-6 col-sm-12 col-xs-12" style="padding:10px">
<a href="ProductView.aspx?PID=<%# Eval("p_id") %>">
<div class="thumbnail">
<img src='data:image/jpg;base64,<%# !string.IsNullOrEmpty(Eval("p_image").ToString()) ? Convert.ToBase64String((byte[])Eval("p_image")) : string.Empty %>' style="object-fit:cover; width:auto; height: 300px"/>
<div class="caption">
<div class="procat">Category :<%# Eval("p_category") %></div>
<div class="protype">Type :<%# Eval("p_group") %></div>
<div class="proprice">Price :<%# Eval("p_price") %></div>
</div>
</div>
</a>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
</div>
<footer>
<a class="pull-right" href="Default.aspx" title="To Top"><span class="glyphicon glyphicon-chevron-up"></span></a>
<div class="container text-center">
<p class="text-muted">
© 2020 Dhanya & Lakshmi Co.
</p>
</div>
</footer>
</div>
</form>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
<script src="Scripts/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
// Add smooth scrolling to all links in navbar + footer link
$("navbar footer a[href='Default.aspx']").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (900) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({scrollTop: $(hash).offset().top}, 100, function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
$(window).scroll(function() {
$(".slideanim").each(function(){
var pos = $(this).offset().top;
var winTop = $(window).scrollTop();
if (pos < winTop + 600) {$(this).addClass("slide");}
});
});
$("#addCart").Click(function myFunction() {
window.location.href = "~/Cart.aspx";
});
})
</script>
</body>
</html>