-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathProductView.aspx
More file actions
91 lines (87 loc) · 5.45 KB
/
ProductView.aspx
File metadata and controls
91 lines (87 loc) · 5.45 KB
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
<%@ Page Title="" Language="C#" MasterPageFile="~/GeneralLayout.master" AutoEventWireup="true" CodeFile="ProductView.aspx.cs" Inherits="ProductView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="container">
<div class="row" style="padding-top: 50px">
<div class="col-md-5">
<div style="max-width: 480px" class="thumbnail">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
<li data-target="#carousel-example-generic" data-slide-to="3"></li>
<li data-target="#carousel-example-generic" data-slide-to="4"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<asp:Repeater ID="rptrImages" runat="server">
<ItemTemplate>
<div class="carousel-item <%# GetActiveClass(Container.ItemIndex) %>">
<img class="d-block w-100" src="Images/ProductImages/<%#Eval("PID") %>/<%#Eval("Name") %><%#Eval("Extention") %>" alt="<%#Eval("Name") %>" onerror="this.src='images/noimage.jpg'">
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<!-- Controls -->
<a class="carousel-control-prev" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carousel-example-generic" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
<div class="col-md-7">
<asp:Repeater ID="rptrProductDetails" OnItemDataBound="rptrProductDetails_ItemDataBound" runat="server">
<ItemTemplate>
<div class="divDet1 pt-2">
<h1 class="proNameView"><%#Eval("PName") %></h1>
<span class="proOgPriceView"><%#Eval("PPrice") %></span><span class="proPriceDiscountView"> <%# string.Format("{0}",Convert.ToInt64(Eval("PPrice"))-Convert.ToInt64(Eval("PSelPrice"))) %> OFF</span>
<p class="proPriceView"><%#Eval("PSelPrice") %></p>
</div>
<div>
<h5 class="h5Size">SIZE</h5>
<div>
<asp:RadioButtonList ID="rblSize" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
</asp:RadioButtonList>
</div>
</div>
<div class="divDet1">
<asp:Button ID="btnAddToCart" OnClick="btnAddToCart_Click" CssClass="mainButton" runat="server" Text="ADD TO CART" />
<asp:Label ID="lblError" runat="server" CssClass="text-danger"></asp:Label>
</div>
<div class="divDet1">
<h5 class="h5Size">Description</h5>
<p>
<%#Eval("PDescription") %>
</p>
<h5 class="h5Size">Product Details</h5>
<p>
<%#Eval("PProductDetails") %>
</p>
<h5 class="h5Size">Material & Care</h5>
<p>
<%#Eval("PMaterialCare") %>
</p>
</div>
<div>
<p><%# ((int)Eval("FreeDelivery")==1)?"Free Delivery":"" %></p>
<p><%# ((int)Eval("30DayRet")==1)?"30 Days Returns":"" %></p>
<p><%# ((int)Eval("COD")==1)?"Cash on Delivery":"" %></p>
</div>
<asp:HiddenField ID="hfCatID" Value='<%# Eval("PcategoryID") %>' runat="server" />
<asp:HiddenField ID="hfSubCatID" Value='<%# Eval("PSubCatID") %>' runat="server" />
<asp:HiddenField ID="hfGenderID" Value='<%# Eval("PGender") %>' runat="server" />
<asp:HiddenField ID="hfBrandID" Value='<%# Eval("PBrandID") %>' runat="server" />
</ItemTemplate>
</asp:Repeater>
</div>
</div>
</div>
</asp:Content>