-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProductView.aspx
117 lines (96 loc) · 5.39 KB
/
ProductView.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
<%@ Page Title="" Language="C#" MasterPageFile="~/User.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">
<br />
<br />
<br /><br /><br />
<button id="btnCart2" runat="server" class="btn btn-primary navbar-btn pull-right" onserverclick="btnCart2_ServerClick" type="button">
Cart <span id="CartBadge" runat="server" class="badge">0</span>
</button>
<br />
<div style="padding-top:50px">
<!--- Success Alert --->
<div id="divSuccess" runat="server" class="alert alert-success alert-dismissible fade in h4">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Success! </strong>Item successfully added to cart. <a href="Cart.aspx">View Cart</a>
</div>
<div class="col-md-5">
<div style="max-width:480px" class="thumbnail">
<%-- for proImage slider--%>
<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" role="listbox">
<asp:repeater ID="rptrImage" runat="server">
<ItemTemplate>
<div class="item <%# GetActiveImgClass(Container.ItemIndex) %>">
<img src="Images/ProductImages/<%# Eval("PID") %>/<%# Eval("Name") %><%# Eval("Extention") %>" alt="<%# Eval("Name") %>" onerror="this.src='Images/ImageNotAvailable.jpg'">
</div>
</ItemTemplate>
</asp:repeater>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<%-- for proimage slider ending--%>
</div>
</div>
<div class="col-md-5">
<asp:Repeater ID="rptrProductDetails" runat="server" OnItemDataBound="rptrProductDetails_ItemDataBound">
<ItemTemplate>
<div class="divDet1">
<h1 class="proNameView"><%# Eval("PName") %> </h1>
<span class="proOgPriceView">Rs.<%#Eval("PPrice","{0:c}") %></span> <span class="proPriceDiscountView"> Off Rs.<%# string.Format("{0}",Convert.ToInt64(Eval("PPrice"))-Convert.ToInt64(Eval("PSelPrice"))) %></span><p class="proPriceView">Rs. <%#Eval("PSelPrice","{0:c}") %></p>
</div>
<div >
<h5 class="h5size"> SIZE</h5>
<div>
<asp:radiobuttonlist ID="rblSize" runat="server" RepeatDirection="Horizontal" >
<asp:ListItem Value="S" Text="S"></asp:ListItem>
<asp:ListItem Value="M" Text="M"></asp:ListItem>
<asp:ListItem Value="L" Text="L"></asp:ListItem>
<asp:ListItem Value="XL" Text="XL"></asp:ListItem>
</asp:radiobuttonlist>
</div>
</div>
<div class="divDet1">
<asp:button ID="btnAddtoCart" CssClass="mainButton" runat="server" text="ADD TO CART" OnClick="btnAddtoCart_Click"/>
<asp:Label ID="lblError" CssClass ="text-danger " runat="server" ></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" runat="server" Value='<%# Eval("PcategoryID") %>' />
<asp:HiddenField ID="hfSubCatID" runat="server" Value='<%# Eval("PSubCatID") %>' />
<asp:HiddenField ID="hfGenderID" runat="server" Value='<%# Eval("PGender") %>' />
<asp:HiddenField ID="hfBrandID" runat="server" Value='<%# Eval("PBrandID") %>' />
</ItemTemplate>
</asp:Repeater>
</div>
</div>
</asp:Content>