-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditSize.aspx
99 lines (78 loc) · 3.96 KB
/
EditSize.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
<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="EditSize.aspx.cs" Inherits="EditSize" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="container">
<h2></h2>
<br /><br /><br /><br />
<div class="panel panel-primary">
<div class="panel-heading">Edit Size</div>
<div class="panel-body">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label> Enter ID:</label>
<asp:TextBox ID="txtID" CssClass="form-control" runat="server" AutoPostBack="true" ontextchanged="txtID_TextChanged"></asp:TextBox>
</div>
<div class="form-group">
<label> Enter Size (L,S,XL)</label>
<asp:TextBox ID="txtSize" CssClass="form-control" runat="server"></asp:TextBox>
</div>
<div class="form-group">
<label> Select Brand</label>
<asp:DropDownList ID="ddlBrand" CssClass ="form-control" runat="server"></asp:DropDownList>
</div>
<div class="form-group">
<label> Select Category</label>
<asp:DropDownList ID="ddlCategory" CssClass ="form-control" runat="server" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
</div>
<div class="form-group">
<label> Sub Category</label>
<asp:DropDownList ID="ddlSubCategory" CssClass ="form-control" runat="server"></asp:DropDownList>
</div>
<div class="form-group">
<label> Gender</label>
<asp:DropDownList ID="ddlGender" CssClass ="form-control" runat="server"></asp:DropDownList>
</div>
<div class="form-group">
<asp:Button ID="btnUpdateSubCategory" CssClass="btn btn-primary" runat="server" Text="UPDATE" onclick="btnUpdateSubCategory_Click" />
</div>
</div>
<div class="col-sm-6">
<div class="row">
<div class="col-md-12">
<h4 class="alert-info text-center"> All Size</h4>
<br />
<asp:TextBox ID="txtFilterGrid1Record" style="border:2px solid blue" CssClass="form-control" runat="server" placeholder="Search Category...." onkeyup="Search_Gridview(this)"></asp:TextBox>
<hr />
<div class="table table-responsive">
<asp:GridView ID="GridView1" CssClass="table table-condensed table-hover" runat="server" EmptyDataText="Record not found...">
</asp:GridView>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel-footer">Panel Footer</div>
</div>
</div>
<script type="text/javascript">
function Search_Gridview(strKey) {
var strData = strKey.value.toLowerCase().split(" ");
var tblData = document.getElementById("<%=GridView1.ClientID %>");
var rowData;
for (var i = 1; i < tblData.rows.length; i++) {
rowData = tblData.rows[i].innerHTML;
var styleDisplay = 'none';
for (var j = 0; j < strData.length; j++) {
if (rowData.toLowerCase().indexOf(strData[j]) >= 0)
styleDisplay = '';
else {
styleDisplay = 'none';
break;
}
}
tblData.rows[i].style.display = styleDisplay;
}
}
</script>
</asp:Content>