-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBookSearch.aspx
120 lines (97 loc) · 5 KB
/
BookSearch.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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookSearch.aspx.cs" Inherits="BookSearch" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Library Management System</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/css/main.css" />
<style type="text/css">
.middlealign {
vertical-align: middle;
}
.bottompad {
padding-bottom: 5px;
}
table {
padding: 5px 5px 5px 5px;
}
.contentcenter {
margin-left: 30%;
margin-right: 30%;
}
</style>
</head>
<body">
<form id="form1" runat="server">
<div id="page-wrapper">
<!-- Nav Bar -->
<header id="header" class="alt">
<h1 id="logo">Library Management System</h1>
<nav id="nav">
<ul>
<li class="current">Search Book</li>
</ul>
</nav>
</header>
<!-- Banner -->
<section id="banner">
<div class="contentcenter">
<h2>Search Book
</h2>
</div>
<div>
<table>
<tr>
<td>
<asp:TextBox ID="txtISBNSearch" runat="server" placeholder="Enter ISBN " MaxLength="30"></asp:TextBox>
</td>
<td>
<asp:Button ID="Button1" runat="server" Text="Search" OnClick="searchBook"/>
</td>
</tr>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Please Enter an ISBN" ControlToValidate="txtISBNSearch" Font-Bold="true" ForeColor="Red"></asp:RequiredFieldValidator>
</table>
</div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ISBN" AllowPaging="True" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" PageSize="5" EmptyDataText="No Data Found" EmptyDataRowStyle-ForeColor="Black">
<Columns>
<asp:BoundField DataField="ISBN" HeaderText="ISBN" ReadOnly="True" SortExpression="ISBN"></asp:BoundField>
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title"></asp:BoundField>
<asp:BoundField DataField="Publisher" HeaderText="Publisher" SortExpression="Publisher"></asp:BoundField>
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description"></asp:BoundField>
</Columns>
<FooterStyle BackColor="White" ForeColor="#333333"></FooterStyle>
<HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White"></HeaderStyle>
<PagerStyle HorizontalAlign="Center" BackColor="#336666" ForeColor="White"></PagerStyle>
<RowStyle BackColor="White" ForeColor="#333333"></RowStyle>
<SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White"></SelectedRowStyle>
<SortedAscendingCellStyle BackColor="#F7F7F7"></SortedAscendingCellStyle>
<SortedAscendingHeaderStyle BackColor="#487575"></SortedAscendingHeaderStyle>
<SortedDescendingCellStyle BackColor="#E5E5E5"></SortedDescendingCellStyle>
<SortedDescendingHeaderStyle BackColor="#275353"></SortedDescendingHeaderStyle>
</asp:GridView>
<table class="bgMessage">
<tr>
<td class="leftalign">
<asp:Label ID="lblErrorMessage" runat="server" Text="" ForeColor="Red" Font-Bold="true" Font-Size="XX-Large"></asp:Label>
</td>
</tr>
</table>
<div class="row 50%">
<div class="6u 12u(mobile)">
<asp:Button ID="Button2" runat="server" Text="Back to Book Menu" CssClass="button special" PostBackUrl="~/BookMenu.aspx" CausesValidation="false"/>
</div>
</div>
</section>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollgress.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</form>
</body>
</html>