-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddProduct.aspx
227 lines (173 loc) · 9.97 KB
/
AddProduct.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="AddProduct.aspx.cs" Inherits="AddProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class ="container">
<div class ="form-horizontal">
<br />
<br />
<h2>Add Product</h2>
<hr />
<div class ="form-group">
<asp:Label ID="Label1" runat="server" CssClass ="col-md-2 control-label" Text="Product Name"></asp:Label>
<div class ="col-md-3">
<asp:TextBox ID="txtProductName" CssClass ="form-control" runat="server"></asp:TextBox>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label2" runat="server" CssClass ="col-md-2 control-label" Text="Price"></asp:Label>
<div class ="col-md-3">
<asp:TextBox ID="txtPrice" CssClass ="form-control" runat="server"></asp:TextBox>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label3" runat="server" CssClass ="col-md-2 control-label" Text="SellingPrice"></asp:Label>
<div class ="col-md-3">
<asp:TextBox ID="txtsellPrice" CssClass ="form-control" runat="server"></asp:TextBox>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label4" runat="server" CssClass ="col-md-2 control-label" Text="Brand"></asp:Label>
<div class ="col-md-3">
<asp:DropDownList ID="ddlBrand" CssClass ="form-control" runat="server"></asp:DropDownList>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label5" runat="server" CssClass ="col-md-2 control-label" Text="Category"></asp:Label>
<div class ="col-md-3">
<asp:DropDownList ID="ddlCategory" CssClass ="form-control" AutoPostBack ="true" runat="server" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged"></asp:DropDownList>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label6" runat="server" CssClass ="col-md-2 control-label" Text="SubCategory"></asp:Label>
<div class ="col-md-3">
<asp:DropDownList ID="ddlSubCategory" CssClass ="form-control" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSubCategory_SelectedIndexChanged"></asp:DropDownList>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label19" runat="server" CssClass ="col-md-2 control-label" Text="Gender"></asp:Label>
<div class ="col-md-3">
<asp:DropDownList ID="ddlGender" CssClass ="form-control" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlGender_SelectedIndexChanged"></asp:DropDownList>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label7" runat="server" CssClass ="col-md-2 control-label" Text="Size"></asp:Label>
<div class ="col-md-3">
<asp:CheckBoxList ID="cblSize" CssClass ="form-control" RepeatDirection="Horizontal" runat="server"></asp:CheckBoxList>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label20" runat="server" CssClass ="col-md-2 control-label" Text="Quantity"></asp:Label>
<div class ="col-md-3">
<asp:TextBox ID="txtQuantity" CssClass ="form-control" runat="server"></asp:TextBox>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label8" runat="server" CssClass ="col-md-2 control-label" Text="Description"></asp:Label>
<div class ="col-md-3">
<asp:TextBox ID="txtDescription" TextMode ="MultiLine" CssClass ="form-control" runat="server"></asp:TextBox>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label9" runat="server" CssClass ="col-md-2 control-label" Text="Product Details"></asp:Label>
<div class ="col-md-3">
<asp:TextBox ID="txtPDetail" TextMode ="MultiLine" CssClass ="form-control" runat="server"></asp:TextBox>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label10" runat="server" CssClass ="col-md-2 control-label" Text="Materials and Care"></asp:Label>
<div class ="col-md-3">
<asp:TextBox ID="txtMatCare" TextMode ="MultiLine" CssClass ="form-control" runat="server"></asp:TextBox>
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label11" runat="server" CssClass ="col-md-2 control-label" Text="Upload Image"></asp:Label>
<div class ="col-md-3">
<asp:FileUpload ID="fuImg01" CssClass ="form-control" runat="server" />
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label12" runat="server" CssClass ="col-md-2 control-label" Text="Upload Image"></asp:Label>
<div class ="col-md-3">
<asp:FileUpload ID="fuImg02" CssClass ="form-control" runat="server" />
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label13" runat="server" CssClass ="col-md-2 control-label" Text="Upload Image"></asp:Label>
<div class ="col-md-3">
<asp:FileUpload ID="fuImg03" CssClass ="form-control" runat="server" />
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label14" runat="server" CssClass ="col-md-2 control-label" Text="Upload Image"></asp:Label>
<div class ="col-md-3">
<asp:FileUpload ID="fuImg04" CssClass ="form-control" runat="server" />
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label15" runat="server" CssClass ="col-md-2 control-label" Text="Upload Image"></asp:Label>
<div class ="col-md-3">
<asp:FileUpload ID="fuImg05" CssClass ="form-control" runat="server" />
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label16" runat="server" CssClass ="col-md-2 control-label" Text="Free Delivery"></asp:Label>
<div class ="col-md-3">
<asp:CheckBox ID="chFD" runat="server" />
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label17" runat="server" CssClass ="col-md-2 control-label" Text="30 Days Return"></asp:Label>
<div class ="col-md-3">
<asp:CheckBox ID="ch30Ret" runat="server" />
</div>
</div>
<div class ="form-group">
<asp:Label ID="Label18" runat="server" CssClass ="col-md-2 control-label" Text="COD"></asp:Label>
<div class ="col-md-3">
<asp:CheckBox ID="cbCOD" runat="server" />
</div>
</div>
<div class ="form-group">
<div class ="col-md-2 "> </div>
<div class ="col-md-6 ">
<asp:Button ID="btnAdd" CssClass ="btn btn-success " runat="server" Text="ADD Product" OnClick="btnAdd_Click" />
</div>
</div>
</div>
</div>
<div class="container">
<hr />
<div class="panel panel-primary">
<div class="panel-heading"><h2>Product Report</h2> </div>
<div class="panel-body">
<div class="col-md-12">
<div class="form-group">
<div class="table table-responsive">
<asp:GridView ID="GridView1" runat="server" CssClass="table" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="PID" HeaderText="S.No." />
<asp:BoundField DataField="PName" HeaderText="PName" />
<asp:BoundField DataField="PPrice" HeaderText="Price" />
<asp:BoundField DataField="PSelPrice" HeaderText="SellPrice" />
<asp:BoundField DataField="Brand" HeaderText="Brand" />
<asp:BoundField DataField="CatName" HeaderText="Category" />
<asp:BoundField DataField="SubCatName" HeaderText="SubCategory" />
<asp:BoundField DataField="gender" HeaderText="gender" />
<asp:BoundField DataField="SizeName" HeaderText="SizeName" />
<asp:BoundField DataField="Quantity" HeaderText="Quantity" />
<asp:TemplateField HeaderText="Photo">
<ItemTemplate>
<%-- <img src="Images/ProductImages/<%# Eval("PID") %>/<%# Eval("ImageName") %><%# Eval("Extention") %>" alt="<%# Eval("ImageName") %>" style=" height:150px; width:150px;"/> --%>
</ItemTemplate>
</asp:TemplateField>
<%-- <asp:CommandField ShowEditButton="true" />
<asp:CommandField ShowDeleteButton="true" />--%>
</Columns>
</asp:GridView>
</div>
</div>
</div>
</div>
<div class="panel-footer">Panel Footer</div>
</div>
</div>
</asp:Content>