Online Library Management System Report
Online Library Management System Report
Online Library Management System Report
An Online Library
A
Project Report
Submitted in partial Fulfillment of the requirements
For the award of PGDCA 2nd Semister
Submitted by
Soibam Roshni Devi
Roll No :18187
Registration No.:1100160045
315008H
(………………………)
(Guide)
(Designation:………………)
Certificate
This is to certify that the project report entitled “Online Library” is a
bonafide work done by Soibam Roshni Devi of PGDCA 2ndSemister and
(Roll No:-18187) in the partial fulfillment of the requirement for the
award of PGDCA 2nd Semister 2018-2019 and has carried out under my
direct supervision and guidance. This project work or a similar report
on the topic has not been submitted for any other examination and
does not form part of any other course undergone by the candidate.
Date :
Place :
My first and foremost debt of gratitude is to Shri. P. Vikramjit Singh, Sr. Software
Engineer of Hadrontechs Pvt. Ltd for allowing me to do the project work as a partial
fulfillment for the award of PGDCA 2nd Semister and giving me an overall guidance
whenever we have interaction.
I cannot fully express my gratitude to all those who help me whose name have not been
mentioned, whose support moulde this project work a complete and success.
I was benefited from the intuitive explanations and implication provided by them.
Date :
Place :
ABSTRACT
The System “ On line Library” has been desgined and developed as a project
work in order to serve as as a partial fulfillment of the requirements for the
Award of PGDCA. It is a website developed to encounter the drawback of
manually file processing system accounting
The frontend of my project will be Microsoft asp.net 2005 with azax extension
2.0, and the backend will be Microsoft Sql 2005 . And the environment will be
Microsoft Xp service pack-2.
There will be three types of user : An Administrator, Users and Member.
The Administrator will have the privilege to control all the functionalities of this
distributed application. The Administrator can create a user and also has the
control to band the users.
An administrator and the users will have a valid account to access the application.
They will have different interface according to their role. Except the
Administrator can access all interface.
When a member wants to make an enquiry about availability of book, he/she can easily
know from the Book enquiry interface, which is public. If the desired Book is found
vacant then he/she can come to the Library and ask to borrow the book . And the user of
this application will borrow that particular book in the membership id of that member .
And the borrowed record will be stored in a RDBMS. A Member can borrow three books
by his/her merbership id. After borrowing three books the member cannot borrow further
books, until and unless he/she returns the books. The user of this application can make
enquiry for the member who borrowed the book. And can found out the particular
member who borrowed the book from the library.
So, this Dynamic web page will make Library management very easy, accurate and
time saving.
CONTENTS
1. Indroduction 1-2
1.1 Purpose 1
1.2 Objective 1
2.7 ASP.NET 12
2.8 IIS 13
Conclusion 62
1
INTRODUCTION
1.1 Purpose
The purpose of this Report is to collect, analyze and define high-level
needs and features of the “Online Library ”. Only the targeted features are
extracted to illustrated in details, leaving behind other less important
features by mentioning their existence only. A vision to the overall works
done to develop this system is provided by this report.
1.2 Objectives
The main objective of Developing this Dynamic web page is to encounter
the drawback of olden way of manually processing Library management
system.
When a member want to make an query about availability of book, he/she can easily
know from the Book query interface , which is public. If the desired found is found
vacant then he/she can come to the Library and ask to borrow the book. And the user of
this application will borrow that particular book in the membership id of that member.
And the borrowed record will be stored in a RDBMS. A Member can borrow three books
by his/her membership id. After borrowing three books the member cannot borrow
further
2
books , until and unless he/she returns the books. The user of this application can make
query for the member who borrowed the book. And can found out the particular member
who borrowed the book from the library.
The software Lifecycle is broken into cycles, each cycle working on a new
generation of the product. The Rational Unified Process divides one development
cycle in four consecutive phases.
Inception phase
Elaboration phase
Construction phase
Transition phase
Inception Phase
Inception phase Elaboration phase Construction phae transition
During the inception phase, we establish the business case for the system and
delimit the project scope to accomplish this we must identify all external entities
with which the system will interact (actors) and define the nature of this
interaction at a high-level. This involves identifying all use cases and describing a
few significant ones. The business case includes success criteria, risk assessment,
and estimate of the resources needed, and a phase plan showing dates of major
milestones.
5
Elaboration Phase
Inception phase Elaboration phase Construction phae transition
The purpose of the elaboration phase is to analyze the problem domain, establish
a sound architectural foundation, develop the project plan, and eliminate the
highest risk elements of the project. To accomplish these objectives, we must
have the “mile wide and inch deep” view of the system. Architectural decisions
have to be made with an understanding of the whole system : its scope, major
functionality and nonfunctional requirements such as performance
requirements.
Construction Phase
Inception phase Elaboration phase Construction phae transition
During the construction phase, all remaining components and application features are
developed and integrated into the product, and all features are thoroughly tested. The
construction phase, in one sense, a manufacturing operations to optimize costs, schedules,
and quality. In this sense, the management mindset undergoes a transition from the
development of intellectual property during inception and elaboration, to the
development of deployable products during construction and transition.
Transition Phase
Inception phase Elaboration phase Construction phae transition
The purpose of the transition phase is to transition the software product to the user
community. Once the product has been given to the end user, issues usually arise that
6
require you to develop new releases, correct some problems, or finish the features that
were postponed.
2.2 MERITS AND DEMERITS OF THIS APPROACH
2.2.1 MERITS
This approach omits the need to find all the requirements at the starting stage of
the project.
For complex system it is not possible to collect all the requirements at the very
initial stages of project development, so this type of approach is suitable for
developing complex systems.
It can result in superior testing because testing in each increment is expected to be
easier than testing the entire system.
2.2.2 DEMERITS
The duration for delivering the final system will be long if the system is very
complex.
To use the format Rational Unified Process documentation and templates, it is
necessary to buy the RUP methodology and tools, including the Rational Rose
desingn tool.
For non-functional requirements Rational Unified Process doesn’t state clearly
how to deal with.
2.3 UML
The Unified Modeling Language (UML) uses graphical notations which makes things
easier for the analyst and developer at visualizing, specifying, constructing, and
documenting the artifacts of a software-intensive system.
7
UML defines the notation and semantics for the following domains :
- The User Interaction (Use Case Model) – portrays the boundary and
interaction between the system and users. The Interaction or
Communication Model describes how objects in the system will interact
with each other to get work done.
- The state or Dynamic Model – State charts describe the states or
conditions that classes assume overe time. Activity graphs describe the
workflow’s the system will implement.
- The Logical or Class Model – describes the classes and objects that will
make up the system.
- The Physical Component Model – describes the software (and sometimes
hardware componednts) that make up the system.
- The Physical Deployment Model – describes the physical architecture and
the deployment of components on that hardware architecture.
The UML also defines extension mechanisms for extending the UML to meet
specialized needs (for example Business Process Modeling extensions).
8
Rational RequisitePro put forward the power of a data base and Microsoft Word. It
s vigorous architecture maintains live requirements documents that are dynamically
linked to a database for powerfull sort and query capabilities. This allowa us to easily
organize and prioritize our requirements, to trace relationships between them, and track
changes that affect then. Robust traceability features visually indicate how changes affect
the project, therby giving us the ability to perform real-time impact analysis and allowing
us to make informed decisions for scope management or resource allocation. As a result,
we are better able to manage requirement change, and our project is less likely to spiral
off course.
requisitePro captures the change history for each requirement, thereby providing a paper
audit of the evolution of project requirements.
Cross-model references :
As an alternative of maintaining the complete design and implementation for a system in
a solitary model, we can build as many dissimilar models as we want for different pieces
of the system or to represent different perspective of the system. One model can reference
elements contained in a separate model.
System perspective :
XDE incorporates the idea of a ‘perspective’ to facilitate us to see the system from
different angles such as from customer, developer, architect, and database administrator.
Assisted modeling :
XDE guarantees that it is not necessary for any developer to be a UML expert to model
their system since XDE includes wizards written for specific language.
The .Net Framework is an environment for building, deploying, and running Web
applications and Web Services.
The .NET Framework contains a common language runtime and common class
libraries – like ADO.NET, ASP.NET and Windows Forms – to provide advanced
standard services that can be integrated into a variety of computer systems.
The .NET Framework is language neutral. Currently it supports C++, c#, Visual
Basic, and JScrip (Microsft’s version version of JavaScript).
Microsoft’s Visual Studio .NET is a common development environment for the .NET
Framework.
The .NET Class Library and Common Language Runtime are the two fundamental
parts of .NET.
12
2.7 ASP.NET
Microsoft’s ASP.NET is a server-side scripting technology that can be used to create
dynami and interactive Web applications. An ASP.NET page is an HTML page that
contains server-side scripts that are processed by a web sercer before being sent to
the user’s browser. You can combine ASP with Extensible Markup Language (XML)
and Hypertext Markup Language (HTML) to create powerful interactive Web sites.
ASP.NET coding is more “compact” than ASP code; the scripts required to perform a
given functions are shorter in ASP.NET than they are in ASP.
In othter word it is defined as ASP.NET is a part of the .NET framework which is the
platform that allows to program web application and Web Services in any .NET
language, with almost any feature from the .NET Class Library. When a client
requests a page, the ASP.NET service runs, executes code, and generates a final
HTML page to send to the client.
Since the server-side script is building a regular HTML page, it can be served to
almost any browser. An ASP.NET file can be created by using any text editing tool,
such as notepad.
Internet Information server (IIS) is a special software that runs on the Web Service to
support mail exchange, FTP and HTTP access, and everything eslse client expect in order
to access web content.
The following figure shows how IIS handles in ASP.NET file request.
Web request
Remote Client IIS ASP.NET
Browser engine
HTML output
page
Page processing
ASPL.NET page
(.aspx file)
14
2.9 SQL Server 2005
Microsoft SQL Server is a RDBMS (Relation Database Management System)
created by Microsoft Corporation. With the emergence of the Microsoft .NET
applications and services, SQL Server stands as a prominent backbone of the data
management and analysis. One of its promising features is that it supports a superset
of the most common database language, Structured Query Language or SQL. Its
familiarity was among the organizations that need to maintain only small to mediun
size databases. But for the past 5 years its maturity ripen and its target enclose large
enterprise database. Now it is competing with other relational database products for
market segment. SQL Server is easy to manage and provides a separate OLAP
engine. It is the ideal database for Web applications witten in Asp/Asp.Net as well.
SQL Server currently runs only on the Windows operating systems.
Latest XML and HTTP support products make things easier for data accessing
and inter-changing, while powerful analysis capabilities enhance data value.
Enhanced availability features maximize uptime; advanced management functions
automate routine tasks, and improved programming tools and services speed
development.
15
Some of the important features of Microsoft SQL Server 2000 are :
1. Simplify the integration of back-end systems and data transfer across firewalls
using rich SQL Server 2000 XML functionality and support for other Internet
standards, such as Xpath, XSL and XSLT. Web developers can access data
using XML without relational database programming, while database
administrators can easily manipulate data in XML forma using Transact-SQL
(T-SQL) and stored procedures.
2. Connect to SQL Server 2000 databases and OLAP cubes flexibly using Web
with no additional programming. Use secure HTTP database connectivity to
ensure that data can be queried, even by novice developers, through a URL and
intuitive user interfaces.
3. Obtain results quickly using Microsoft English Query, which allows users to
pose questions in English instead of using Structured Query Language (SQL)
or Multi-dimensional Expressions (MDX). Enhanced Full-Text Search now
allows users to search unstructured data such as Microsoft Word documents,
Web pages, or Microsoft Excel spreadsheets.
4. From a data management and analysis perspective, it is critical to turn raw data
into business intelligence and take full advantage of the opportunities presented
by the Web. A complete database and data analysis package, SQL Server 22005
opens the door to the rapid development of a new generation of enterprise-class
business applications that can give your company a critical competitive
advantage.
5. Fully Web-Enabled : SQL Server 2005 provides extensive database
programming capabilities built on Web standards. Rich XML and Internet
standard support give you the ability to store and retrieve data in XML format
easily with build-in stored procedures. You can also use XML update grant to
insert, update and delete data easily.
16
6. Easy access to data through the Web , with SQL Server 2005 you can use HTTP
to send queries to the database, perform full-text search on documents stored in
database, and run queries over the Web with natural language.
7. Quick and extensible analysis services. With SQL Server 2005, you can build
end-to-end analysis solutions with integrated tools to create value from data.
Additionally, you can automatically drive business processes based on analysis
results and flexibly retrieve custom result sets from the most complex
calculations.
8. Quick development, debugging, and data transformation, SQL Server 2005
features the ability to interactively tune and debug queries, quickly move and
transform data from any source, qand define and use functions as if they were
built in to Transact-SQL. You can visually design and code database
applications from any Visual Studio tool.
17
Define and execute all SQL Server administrative tasks on each registered
server.
Desing and text SQL statements, batches, and Scripts interactively by
invoking SQL Query Analyzer.
Bring into play the various Wizards defined for SQL Server.
2.10 AJaX
(Asynchronous JavaScript and XML) using an enhancement in JavaScript that
allows Web pages to be more interactive and behave like local applications, which
are also known as “rich client” applications. AJAX allows the Web page to
retrieve small amounts of data from the server without reloading the entire page.
Prior to AJAx, any retrieval of data from the server required that the entire Web
page be refreshed in the user’s computer. As a result, systems were often
designed with less interaction; for example, to have the user submit a form only
at the end, after all fields were filled in. In contrast, AJAX systems can validate
one or two items at a time “behind the scenes” without making the session
cumbersome, especially over slow connections.
AJAX, also known as “remote scripting,” allows Web-based applications to be
designed like LAN-based applications.
Chapter 3
SYSTEM ANALYSIS AND DESIGN
18
Communication technology have adopted a new medium, the cyber medium. The
ultimate positive effect is that people living at physically challenged regions are blessed
with a new boon. Now Information deficiency is decreasing with the increase of
circulation.
The application of computer to the Existing System is an important aspect as it will
increase throughput and accuracy of various jobs. Moreover this will extend the
Information Technology of the State therebyb marching a step0 forward towards the
dream of E-governance.
Among the options resulted from the quest for an answer, developing a Web application
is foremost on the list. When a member want to make an enquery about availability of
book, he/she can easily know from the Book enquery interface , which is public. If the
desired found is found vacant then he/she can come to the Library and ask to borrow the
book . And the user of this application will borrow that particular book in the membership
id of that member . And the borrowed record will be stored in a RDBMS. A Member can
borrow three books by his/her merbership id. After borrowing three books the member
cannot borrow further books, until and unless he/she returns the books. The
19
user of this application can make enquery for the member who borrowed the book. And
can found out the particular member who borrowed the book from the library.
The Influence of ease of labour and better technology into the old system ignites
towards the moulding of a new system. Major focuses includes ease of tackling,
flavored with interactive interfaces. So far from the farthest vision, no hindrance will
be there in using the system once developed and implemented.
3.2.1 Member Enquery for books : The member make enquery for books availability .
3.2.2 Book borrow : The user will borrow the book for the member in the id of that
particular member who intend to borrow the book.
3.2.3 User enquery the member: The user will make enquery for the member who
borrow the book.
3.2.4 Report : All the transaction, Books, borrow record etc. can be retrieve and also be
print out .
20
3.4 Actor List :
Packages :
Actor
hjj
Administrator
Users.
View Books Details.
. Administrator Creates
Users.
Edit Users..
Fig 3.3 : Use Cases diagram
24
3.8.1 Use Case Specification : View Scheme Details
a) All users opens the browser and provides the URL, for example http
:\\localhost/Online Library/Homepage.aspx.
b) If server is not available Alternate flow 1 follows.
c) User fills all the required information in the textbox fields and click the button to
visit in their Interface.
d) Member make books availability enquery, through the Home page Interface.
e) User borrow books and check the member..
f) Administrator create user, edit user ( Valid or Band).
g) All the transaction report can be view on the screen with the help of a crystal
report and can also be print out.
h) User log out from their Interface.
i) The use case ends.
25
Alternative Flows
Alternate flow 1 : Web Server not running.
System responds with “Web Server is currently down. Kindly try after sometime.”
Special Requirements
Data are available on Internet.
User has access to Internet.
Preconditions
Web Server should be up and running.
Post Conditions
Log on through the main page.
Flow of Events
Basic Flow
a) User opens the browser and provides the URL, e,g, http
://localhost/Homepage.aspx.
b) If server is not available Alternate flow 1 follows.
26
c) User log on to his interface and fill all the dropdown combos and textboxes, click
the sumit button and made a borrow transaction .
d) Administrator log on to his interface and see the Report of Borrow and Books
details, sometime creates user.
e) User log off from their interfaces.
f) The use case ends.
Alternative Flows
Alternate flow 1 : Web Server not running
System respons with “Web Server is currently down. Kindly try after Sometime.”
Special Requirements
Data are available on internet.
User has access to internet.
Preconditions
Web Server should be up and running.
Post Conditions
View Books Details.
27
Flow of Events
Basic Flow
a) User opens the browser and provides the URL, e,g, http
://localhost/Homepage.aspx.
b) If server is not available Alternate flow 1 follows.
c) User log on to his interface for “Borrow interface ” and select the dropdown
combo and textboxes, fill the details and submit the ok button..
d) User log off from their interfaces.
e) The use case ends.
Alternative Flows
Alternate flow 1 : Web Server not running
System response with “Web Server is currently down. Kindly try after Sometime.”
Special Requirements
Data are available on internet.
User has access to internet.
Preconditions
Web Server should be up and running.
Post Conditions
View Transaction of Borrow Details.
.
28
Brief Description
User invokes this use case to check the member details.
Flow of Events
Basic Flow
a) The use case begins when the User opens the Home page.
b) If server is not available. Alternate Flow 1 follows.
c) The User enters the User Name and Password and then click Log on.
d) The system confirms the ID and Password exist. If not Alternate Flow 2
follows.
e) The Userr sees Lon on to the Booking and go to another interface namely “
Cancellation ”Interface..
f) The user cancelled by clicking the sumit button and made a enquery .
g) The User performs the function and sign-out.
h) The Use-case ends.
Alternative Flows
Alternate Flow 1 : Web server is down
a) System responds “Server currently down, Please wait for sometime”
Alternate Flow 2 : Login Fail.
a) System responds “Account doesn’t exist, please enter existing ID and Password”
b) Basic flow
c) Continues
29
Preconditions
Web Server should be up and running.
User should have an existing account.
Post Conditions
Acknowledgement message.
3.8.5 Use Case Specification : Administrator edit Users.
Flow of Events
Basic Flow
a) The Use-case begins when the Administrator opens the Home page.
b) If server is not available Alternate Flow 1 follows.
c) Administrator supplies his ID and Password.
d) The system confirms ID and Password, then directs to Administrator interface
page. If it doesn’t exist Alternate Flow 2 follows.
e) Administrator clicks the mange account among the option provided by the
System.
f) The System presents the existing Accounts in a Datagrid and provides other
facilities.
30
g) Administrator supplies User Name, Password, Type, Scheme and click create.
h) The System creates a new account. If not Alternate Flow 3 follows.
i) The Administratorr Signs-out.
j) The use case ends.
Alternative flows
Alternate Flow 1 : Web Server is down
a) System responds with “Web Server is currently down. Please try again after
sometime”.
Alternate Flow 2 : Login Fail
a). System responds “Login Fail, Please check the ID and Password”.
b). Basic fow e-continues.
Special Requirements
The User should have Administrator Priviledge.
Preconditions
Web Server should be up and running.
Post Conditions
Acknowledgement message.
31
Alternative Flows
Alternate Flow 1 : Web Server is down.
a). System responds with “Web Server is currently down. Please try again after
somethime.”
32
Special Requirements
The user have privileged to invoke the page.
Preconditions
Web Server should be up and running.
Post Conditions
Acknowledgement message.
Chapter 4
Input/Output Screens
33
Fig 4.1 Home page Online Library.
34
Fig : 4.3 Borrrow Interface.
36
37
Imports System.Data
Imports System.Data.SqlClient
Partial Class _Default
Inherits System.Web.UI.Page
Public myconnection As New sql
Else
msg.Text = "Access Denied !"
End If
End If
End Sub
Me.GridView1.Visible = False
Else
If myreader.Read Then
msgs.Text = ""
Me.GridView1.Visible = True
myconnection.connection.Close()
Dim adapter As New
SqlClient.SqlDataAdapter(mysearch.CommandText, myconnection.connection)
Dim ds As New DataSet
adapter.Fill(ds, "table")
Me.GridView1.DataSource = ds
Me.GridView1.DataMember = "table"
Me.GridView1.DataBind()
Else
msgs.Text = " Not available !"
Me.GridView1.Visible = False
myconnection.connection.Close()
End If
End If
End Sub
End Class
39
Imports System.Data
Imports System.Data.SqlClient
Partial Class bookdetail
Inherits System.Web.UI.Page
Public myconnection As New sql
mycommand.Connection = myconnection.connection
myconnection.connection.Open()
mycommand.ExecuteNonQuery()
msg.Text = " Your Transaction is Successful "
myconnection.connection.Close()
End If
End If
End Sub
End Sub
End Class
41
Imports System.Data
Imports System.Data.SqlClient
Partial Class borrow
Inherits System.Web.UI.Page
Public myconnection As New sql
uname.Text = Session("name")
uid.Text = Session("userid")
urole.Text = Session("role")
End Sub
Dim dateofborrow As String = Now.Day & "/" & Now.Month & "/"
& Now.Year
Dim mycon As New SqlCommand
mycon.CommandText = "select * from bookdetail where
book_code='" & bookcode.Text & "'"
mycon.Connection = myconnection.connection
Dim reader As SqlClient.SqlDataReader
myconnection.connection.Open()
reader = mycon.ExecuteReader
If reader.Read Then
myconnection.connection.Close()
Dim myupdate As New SqlCommand
myupdate.CommandText = "update bookdetail set
available ='" & (mycounter - 1) & "' where book_code='" & bookcode.Text
& "'"
myupdate.Connection = myconnection.connection
myconnection.connection.Open()
myupdate.ExecuteNonQuery()
msg.Text = " Successfully updated !"
myconnection.connection.Close()
myconnection.connection.Close()
myreader.Read()
msgs.Text = ""
Me.GridView1.Visible = True
myconnection.connection.Close()
Dim adapter As New
SqlClient.SqlDataAdapter(mysearch.CommandText, myconnection.connection)
Dim ds As New DataSet
adapter.Fill(ds, "table")
Me.GridView1.DataSource = ds
Me.GridView1.DataMember = "table"
Me.GridView1.DataBind()
End If
myconnection.connection.Close()
Else
myconnection.connection.Close()
MsgBox(" Not available !")
End If
myconnection.connection.Close()
Else
msg.Text = " Membership no. not exist!"
End If
myconnection.connection.Close()
End Sub
If department.SelectedIndex = 0 Then
msgs.Text = " Please select the Department !"
Me.GridView1.Visible = False
Else
If myreader.Read Then
msgs.Text = ""
Me.GridView1.Visible = True
myconnection.connection.Close()
Dim adapter As New
SqlClient.SqlDataAdapter(mysearch.CommandText, myconnection.connection)
Dim ds As New DataSet
adapter.Fill(ds, "table")
Me.GridView1.DataSource = ds
Me.GridView1.DataMember = "table"
Me.GridView1.DataBind()
Else
msgs.Text = " Not available !"
Me.GridView1.Visible = False
myconnection.connection.Close()
End If
End If
44
End Sub
Imports System.Data
Imports System.Data.SqlClient
Partial Class create_member
Inherits System.Web.UI.Page
Public myconnection As New sql
End Sub
Dim i As Integer
For i = 1 To 31
td.Items.Add(i)
Next
For i = 1 To 12
tm.Items.Add(i)
Next
For i = 1940 To 2010
ty.Items.Add(i)
45
Next
End If
End Sub
End If
End Sub
End Sub
Response.Redirect("viewmember.aspx")
Else
smsg.Text = " Not exist !"
myconnection.connection.Close()
End If
End If
End Sub
End Class
Imports System.Data
Imports System.Data.SqlClient
UID.Text = Session("userid")
UNAME.Text = Session("name")
UROLE.Text = Session("role")
Dim i As Integer
For i = 1 To 31
td.Items.Add(i)
Next
For i = 1 To 12
tm.Items.Add(i)
Next
For i = 1940 To 2010
ty.Items.Add(i)
Next
End If
End Sub
48
Else
Dim mycon As New SqlCommand
mycon.CommandText = "select * from createuser where
user_id='" & userid.Text & "' and status='" & "Y" & "'"
mycon.Connection = myconnection.connection
Dim reader As SqlClient.SqlDataReader
49
myconnection.connection.Open()
reader = mycon.ExecuteReader
If reader.Read Then
myconnection.connection.Close()
msg.Text = " userid already exist!"
Else
myconnection.connection.Close()
End If
End Sub
reader = mycon.ExecuteReader
If reader.Read Then
Session("name") = reader.Item(0)
Session("address") = reader.Item(1)
Session("userid") = reader.Item(2)
Session("role") = reader.Item(3)
Session("dateofbirth") = reader.Item(5)
Session("photo") = reader.Item(6)
myconnection.connection.Close()
Response.Redirect("viewuser.aspx")
Else
msgs.Text = " Not exist !"
myconnection.connection.Close()
End If
End If
End Sub
End Class
51
Imports System.Data
Imports System.Data.SqlClient
Partial Class borrow
Inherits System.Web.UI.Page
Public myconnection As New sql
uname.Text = Session("name")
uid.Text = Session("userid")
urole.Text = Session("role")
End Sub
Dim dateofborrow As String = Now.Day & "/" & Now.Month & "/"
& Now.Year
Dim mycon As New SqlCommand
mycon.CommandText = "select * from bookdetail where
book_code='" & bookcode.Text & "'"
mycon.Connection = myconnection.connection
Dim reader As SqlClient.SqlDataReader
myconnection.connection.Open()
reader = mycon.ExecuteReader
If reader.Read Then
mykon.ExecuteNonQuery()
msg.Text = " Successfully borrowed !"
myconnection.connection.Close()
myconnection.connection.Close()
Dim myupdate As New SqlCommand
myupdate.CommandText = "update bookdetail set
available ='" & (mycounter - 1) & "' where book_code='" & bookcode.Text
& "'"
myupdate.Connection = myconnection.connection
myconnection.connection.Open()
myupdate.ExecuteNonQuery()
msg.Text = " Successfully updated !"
myconnection.connection.Close()
myconnection.connection.Close()
myreader.Read()
msgs.Text = ""
Me.GridView1.Visible = True
myconnection.connection.Close()
Dim adapter As New
SqlClient.SqlDataAdapter(mysearch.CommandText, myconnection.connection)
Dim ds As New DataSet
adapter.Fill(ds, "table")
Me.GridView1.DataSource = ds
Me.GridView1.DataMember = "table"
Me.GridView1.DataBind()
End If
53
myconnection.connection.Close()
Else
myconnection.connection.Close()
MsgBox(" Not available !")
End If
myconnection.connection.Close()
Else
msg.Text = " Membership no. not exist!"
End If
myconnection.connection.Close()
End Sub
Protected Sub Button8_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
If department.SelectedIndex = 0 Then
msgs.Text = " Please select the Department !"
Me.GridView1.Visible = False
Else
If myreader.Read Then
msgs.Text = ""
Me.GridView1.Visible = True
myconnection.connection.Close()
Dim adapter As New
SqlClient.SqlDataAdapter(mysearch.CommandText, myconnection.connection)
Dim ds As New DataSet
adapter.Fill(ds, "table")
Me.GridView1.DataSource = ds
Me.GridView1.DataMember = "table"
Me.GridView1.DataBind()
Else
msgs.Text = " Not available !"
Me.GridView1.Visible = False
myconnection.connection.Close()
End If
End If
54
End Sub
55
Imports System.Data
UID.Text = Session("USERID")
UNAME.Text = Session("NAME")
UROLE.Text = Session("ROLE")
NAME.Text = Session("name")
ADDRESS.Text = Session("address")
USERID.Text = Session("userid")
ROLE.Text = Session("role")
DATEOFBIRTH.Text = Session("dateofbirth")
End Sub
End Class
56
Imports System.Data
Imports System.Data.SqlClient
Partial Class bookdetail
Inherits System.Web.UI.Page
Public myconnection As New sql
End Sub
Protected Sub Button7_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
msg.Text = ""
bookcode.Text = ""
bookname.Text = ""
author.Text = ""
quantity.SelectedIndex = 0
department.SelectedIndex = 0
End Sub
End Class
58
Imports System.Data
Imports System.Data.SqlClient
Partial Class editmember
Inherits System.Web.UI.Page
Public myconnection As New sql
Else
msg.Text = " Memebership no. not exist !"
End If
End If
End Sub
59
End Sub
60
5. Database Design
Fig 5.1 . Book detail Table
61
fig. 5.3 . Membership Table
62
Conclusion
This Dynamic web page is to encounter the drawback of olden way of manually
processing an Library Management.
When a member want to make an enquery about availability of book, he/she can easily
know from the Book enquery interface , which is public. If the desired found is found
vacant then he/she can come to the Library and ask to borrow the book . And the user of
this application will borrow that particular book in the membership id of that member .
And the borrowed record will be stored in a RDBMS. A Member can borrow three books
by his/her merbership id. After borrowing three books the member cannot borrow further
books, until and unless he/she returns the books. The user of this application can make
enquery for the member who borrowed the book. And can found out the particular
member who borrowed the book from the library.
With the help of this distributed application Online Library will be accurate, time
saving and fast.