-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditCategory.aspx
93 lines (67 loc) · 3.09 KB
/
EditCategory.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
<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="EditCategory.aspx.cs" Inherits="EditCategory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<br />
<br />
<br />
<br />
<div class="container">
<div class="row">
<div class ="col-md-6">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Enter Category ID:</label>
<asp:TextBox ID="txtID" CssClass="form-control" runat="server" AutoPostBack="true" ontextchanged="txtID_TextChanged"></asp:TextBox>
</div>
<div class="form-group">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Enter Category Name:</label>
<asp:TextBox ID="txtUpdateCatName" CssClass="form-control" runat="server"></asp:TextBox>
</div>
<div class="form-group">
<asp:Button ID="btnUpdateBrand" CssClass ="btn btn-primary " runat="server"
Text="UPDATE" onclick="btnUpdateBrand_Click" />
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="row">
<div class="col-md-12">
<h4 class="alert-info text-center"> All Category</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>
<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>