-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddSize.aspx
91 lines (88 loc) · 5 KB
/
AddSize.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
<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMaster.master" AutoEventWireup="true" CodeFile="AddSize.aspx.cs" Inherits="AddSize" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="container">
<div class="form-horizontal">
<h2>Add Size</h2>
<hr />
<div class="form-group">
<asp:Label ID="Label3" runat="server" CssClass="col-md-2 control-label" Text="Size Name"></asp:Label>
<div class="col-md-3">
<asp:TextBox ID="txtSizeName" CssClass="form-control" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" CssClass="text-danger" runat="server" ErrorMessage="This field is Required !" ControlToValidate="txtSizeName"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="Label2" 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>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" CssClass="text-danger" runat="server" ErrorMessage="This field is Required !" ControlToValidate="ddlBrand" InitialValue="0"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="Label1" runat="server" CssClass="col-md-2 control-label" Text="Category"></asp:Label>
<div class="col-md-3">
<asp:DropDownList ID="ddlCategory" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged" AutoPostBack="true" CssClass="form-control" runat="server"></asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" CssClass="text-danger" runat="server" ErrorMessage="This field is Required !" ControlToValidate="ddlCategory" InitialValue="0"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="Label4" runat="server" CssClass="col-md-2 control-label" Text="Sub Category"></asp:Label>
<div class="col-md-3">
<asp:DropDownList ID="ddlSubCat" CssClass="form-control" runat="server"></asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" CssClass="text-danger" runat="server" ErrorMessage="This field is Required !" ControlToValidate="ddlSubCat" InitialValue="0"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="Label5" 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"></asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" CssClass="text-danger" runat="server" ErrorMessage="This field is Required !" ControlToValidate="ddlGender" InitialValue="0"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<div class="col-md-2"></div>
<div class="col-md-6">
<asp:Button ID="btnAdd" runat="server" Text="Add" CssClass="btn btn-default" OnClick="btnAdd_Click" />
</div>
</div>
</div>
<h1>Size</h1>
<hr />
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">All Size</div>
<asp:Repeater ID="rptrCategory" runat="server">
<HeaderTemplate>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Brand</th>
<th>Category</th>
<th>Sub Category</th>
<th>Gender</th>
<th>Edit</th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
<tr>
<th><%# Eval("SizeID") %></th>
<th><%# Eval("SizeName") %></th>
<th><%# Eval("Name") %></th>
<th><%# Eval("CatName") %></th>
<td><%# Eval("SubCatName") %></td>
<td><%# Eval("GenderName") %></td>
<td>Edit</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</tbody>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
</div>
</asp:Content>